Once upon a time, nearly all villages in the Alps were made only of farmhouses.
Then roads were built and stagecoaches arrived. Coaching inns were built for overnight stays.
Then shops were built and finally tourists came to ski or to walk in the mountains, so the villages changed again.