This certainly isn't a mIRC bug - it's the server that is allowing you to unset a mode that isn't set.

Presumably this helps when servers/clients become out of sync, I can't think of another reason for it.