Kanji teaching methods vary from school to school. In my elementary school, pupils learned kanji using their eyes, ears, hands, and mouths. Our teacher wrote a kanji while reciting a mantra, and we wrote the kanji while repeating his mantra in chorus after him.
In one example, a teacher shows how to write 幸. He rhythmically says, "横、縦、横で。ソを書いて。下を短く。横二本。そして最後に。縦下ろす" with each stroke. Each phrase is composed of five or seven morae that Japanese people prefer. This means it feels good to say and it's easy to memorize. Such mantras will help pupils remember not only kanji but also their stroke order.
Our teacher's mantra and ours would always be repeated twice or thrice. That was indeed like a clumsy musical but effective for learning kanji.
https://kakijun.com/kanjiphoto/gif/kanji-kakijun-animation-5e78.gif