It is like mathematics in set theory, as set theory can be used for a foundation of mathematics; however, it is not like real analysis, because real analysis cannot be used as a foundation for mathematics (without torture.)
[1]. https://en.wikipedia.org/wiki/Metamathematics
[2]. https://en.wikipedia.org/wiki/Foundations_of_mathematics
But how they are not mathematics? They are part of mathematical logic and mathematical logic or logic in general is branch of mathematics. Do you want to say they are somehow separated from math?