Because geometry.
If you consider pi to just be a convenient name for a fixed numerical constant based on a particular identity found in Euclidean space, then yes: by definition it's the same everywhere because pi is just an alias for a very specific number.
And that sentence already tells us it's not really a "universal" constant: it's a mathematical constant so it's only constant given some very particular preconditions. In this case, it's only our trusty 3.1415etc given the precondition that we're working in Euclidean space. If someone is doing math based on non-Euclidean spaces they're probably not working with the same pi. In fact, rather than merely being a different value, the pi they're working with might not even be constant, even if in formulae it cancels out as if it were.
As one of those "I got called by the principal because my kid talked back to the teacher, except my kid was right": draw a circle on a sphere. That circle has a curved diameter that is bigger than if you drew it on a flat sheet of paper. The ratio of the circle circumference to its diameter is less than 3.1415etc, so is that a different pi? You bet it is: that's the pi associated with that particular non-Euclidean, closed 2D plane.
So is pi the same everywhere in the universe? Ehhhhhhhh it depends entirely on who's using it =D