It is important for language acquisition too, but the language involves a lot more rote memorization than the above.
I mean, you can put whatever you want on a flashcard. e.g "Derive the fundamental theorem of whatever", "Prove this theorem" etc.
Also music has a extreme level of "stuff you just need to memorise".