We use a mathematical formula to calculate the sunrise and sunset in the US. This formula takes into consideration lat/lon and timezone of a particular city. Each zip code may have a different lat/lon; therefore, the sunrise and sunset times may vary slightly.
If you are looking for historical sunrise/sunset data, try the following website. This website also contains moonrise/moonset, moon phase, moon illumination, eclipses, etc.