In humans, we don’t usually castrate them because it throws their hormones out of whack
I think you’re right, it also causes hormonal changes in animals. It’s just that usually we see those hormonal changes as beneficial behavior changes, like lower aggression. So in part we do it on animals to affect their hormones deliberately. For instance castrated cats usually have a lower tendency to pee in the places they shouldn’t.