My granddaughters wrote like that as they learned words. They wrote them to match the sounds of the syllables. Kids learn to adjust the spellings as they read more content. Problem is that there are lots of grownups (including teachers) that never learned or practiced correct spelling of words.