I assume the data is being pulled from an open source database like (NOAA, etc.) and that's the list of cities/states included. I doubt much development time was spent getting the historical weather data beyond setting an interface to access the data from a third party.
EDIT: Doing a quick search, I found an example data set:
https://registry.opendata.aws/noaa-cfs/