>It's not some self-sufficient, sentient being that exists for its own sake
If humans didn't exist do you think a^2 + b^2 = c^2 would cease to be a thing? Math is built on top of logic and it is something that exists independent from the physical realm.
If humans didn't exist, would mathematics cease to have a goal? Yes.