gare vs station in french

im studying to get a french minor and i just came across something really interesting. the word for station depends on what is going through it. if you have urban rail it would be a "station" while regional / national rail is "gare". super interesting distinction in my opinion:)