IIRC, there was once a setting somewhere you could toggle to allow autocorrect to do "naughty" words.
I think this used to be true on Android as well.