People often ignore the distinction between grammar and ortography. In such simplified worldview, bad spelling (or even confusing two words with a similar pronunciation) would be considered a grammatical error.