Granny Smith apples are popular for eating out of hand.
In North America, unkept apples are feral. There's a fair chance they are descendants of trees planted at a homestead.
The wild ancestor is from central Asia:
https://www.nationalgeographic.com/news/2014/5/apples-of-ede...