What do we mean when we say 'Mathematics'?

Basically, why is what is normally considered mathematics (arithmetic, algebra, analysis, geometry, set theory, etc) considered mathematics at all? What makes it so that we understand that this form of knowledge is mathematics and not just extension of logic or philosophy? What even is math?