It’s the law?
No it’s not.
https://en.m.wikipedia.org/wiki/Birthright_citizenship_in_the_United_States