Why railways don’t run hotels any more

I am posting this from a hotel (with wifi) apparently scientifically situated in the middle of nowhere, somewhere near Marseille. This is thanks to SNCF voyages who, while good at booking rail tickets, are apparently absolutely incapable of understanding the concept of a hotel being close to their own railway station, as opposed to a €30 taxi ride away from it.