Centuries ago - when towns were full of domestic animals, and raw sewage just ran into the local waterways - living upstream & upwind were major perks of being well-to-do.
Plausibly the ur-example of this usage is London, England.
It may have been used historically, but I cannot recall ever reading the terms in anything historical.
So I think, same principle, but different words.