Very notably not in the US, however. All persons born or naturalized in the United States and subject to the jurisdiction thereof, are citizens of the United States and of the State wherein they reside.
Because of our history of slavery and settler colonialism more generally. The circumstances differ because of our somewhat unique historical circumstances, although some European countries enacted similar measures for their former colonies.