I have come across a statement: Peter has good grammar, but his spelling is awful.
For me grammar includes syntax, semantics(lexicology), and inflections.
Where does spelling belong to?
Why differentiates the writer between grammar and spelling; is spelling not a subset of grammar?