Safari 7 User Agent is set to “Custom” by default

Solution 1:

I managed to fix it by deleting the CustomUserAgent string in the plist file.

defaults delete com.apple.Safari CustomUserAgent

But I still don’t understand how it got to be like that in the first place.