The canned standard text is perhaps not totally clear, because it is used for both questions and answers. Sometimes the suggested edit tries to fix the bad code in the question, instead of writing a separate answer. That's the "or an attempt to reply" reason.
In your case, it is always a bit tricky when the suggested "fix" to the answer is much larger than the original answer. Like twice the size... That risks getting rejected because it changes too much or could really be a separate answer.
When I see a question with several short how to answers, I sometimes add a separate why answer as well. That is also answering the question, but in a different way.
You should also consider that if your suggested edit is accepted, you get a +2 rep. If you write your own answer, and it is upvoted, you get +10 rep (each time).