Philosophy tries to make implicit understanding explicit and usually fails in interesting ways.
(A part of) Mathematics tries to get the essence of numbers, calculation or the continuum and formulates corresponding axioms.
So Mathematics tries to make the implicit understandig of for example natural numbers explicit.
Mathematics doesn't fail usually because the scope is much smaller.
I think some Mathematicians whose scope is very wide should be regarded as philosophers.
Per Martin Löf:
"Martin-Löf type theory is a formal logical system and philosophical foundation for constructive mathematics" (1)
William Lawvere: his topos theory amalgates Logic and Geometry and leads to a kind of natural philosophy (2)
(1) https://plato.stanford.edu/entries/type-theory-intuitionisti...
(2) https://ncatlab.org/nlab/show/William+Lawvere#RelationToPhil...