If you type two spaces, iOS will replace the two spaces with a period followed by a space. (In a typical text field. Hopefully that isn't an option I set long ago and forgot wasn't a default.)