The concept goes way back. In the U.S., it’s part of the 14th Amendment, born here, citizen here.
About 30+ countries grant automatic citizenship by birth. The U.S. and Canada are the most famous examples.