Right, it did not exist.
I created it, but still did not get the correct results.
Anyway, as you say yourself, "the default value (4) will only be returned if the key value does not exist".
That is right in .Net 5, but it seems that in .Net 6, if the key value does not exist, you get null, and...