I think they are somewhat similar. The way you learn mathematics is the same way you learn new languages, through lots of practice and memorization.
That being said, I still hated learning most sciences such as chemistry, physics and biology, while I've always enjoyed learning maths and new languages in high school. I think that these two work your brain in the same manner. You need to both be able to reproduce information (formulas in mathematics, words in languages), and to be able to use them in a certain manner, to solve problems or to create sentences.