According to the Online Etymology Dictionary, the English word hotel was first recorded in the 1640s and denoted a 'public official residence'. The modern sense of the word as 'an inn of the better sort' (i.e. 'a place offering lodging, food and other services to travellers') was first recorded in 1765. The word comes from the French hôtel, which itself is derived from the Medieval Latin hospitale via Old French hostel.
In French, hôtel was used to refer mainly to public official buildings that frequently received visitors, but this has been largely replaced by the meaning of 'place offering lodging and food to travellers', as used in contemporary English. However, you can still see traces of this old usage in words like hôtel de ville 'town hall' and hôtel des impôts 'tax office' and hôtel de police 'police headquarters'.
In India, the term hotel has taken on a slightly different meaning (and pronunciation, with stress on the first syllable, not the second.) Visitors to India are likely to find that big modern buildings offering lodging are called 'hotels', but they might be slightly shocked to see signs for hotels that do not provide lodging at all.
Take for instance this hotel located right next to the Dimapur Railway Station. As you can see, the hotel only offers 'fooding', a very common term in Indian English meaning 'the provision of food' - this can include the catering at an event or simply selling food at a restaurant.
I'm not entirely certain how the term 'hotel' has come to be used to refer to (what I would call) a 'restaurant', where only food and no lodging is provided. I doubt that this use derives from the original French meaning of a public building that frequently receives visitors. Incidentally, there are also hotels in India that advertise 'only lodging' with no 'fooding'.
My guess is that the term did originally designate a place frequented by travellers and provided both food and lodging - I imagine that travellers were the most likely people to frequent places offering food since most people would have taken their meals at home or packed their own food. Over time, some establishments may have stopped providing one service or the other for whatever reason (e.g. greater profits from selling food), but the label 'hotel' remained. Consequently, the term 'hotel' no longer denoted a place of lodging, but simply a place frequented by travellers. Someone else starting a restaurant near a train station or along a highway may then choose to call their business a 'hotel', even though they have no intention of providing lodging, as long as their expected clientele are likely to be travellers stopping in for a meal.
Whatever the history of the word may be, don't be shocked if you rock up to a hotel in India and can't get a room - some of them simply don't have any for guests!
In French, hôtel was used to refer mainly to public official buildings that frequently received visitors, but this has been largely replaced by the meaning of 'place offering lodging and food to travellers', as used in contemporary English. However, you can still see traces of this old usage in words like hôtel de ville 'town hall' and hôtel des impôts 'tax office' and hôtel de police 'police headquarters'.
In India, the term hotel has taken on a slightly different meaning (and pronunciation, with stress on the first syllable, not the second.) Visitors to India are likely to find that big modern buildings offering lodging are called 'hotels', but they might be slightly shocked to see signs for hotels that do not provide lodging at all.
Take for instance this hotel located right next to the Dimapur Railway Station. As you can see, the hotel only offers 'fooding', a very common term in Indian English meaning 'the provision of food' - this can include the catering at an event or simply selling food at a restaurant.
I'm not entirely certain how the term 'hotel' has come to be used to refer to (what I would call) a 'restaurant', where only food and no lodging is provided. I doubt that this use derives from the original French meaning of a public building that frequently receives visitors. Incidentally, there are also hotels in India that advertise 'only lodging' with no 'fooding'.
My guess is that the term did originally designate a place frequented by travellers and provided both food and lodging - I imagine that travellers were the most likely people to frequent places offering food since most people would have taken their meals at home or packed their own food. Over time, some establishments may have stopped providing one service or the other for whatever reason (e.g. greater profits from selling food), but the label 'hotel' remained. Consequently, the term 'hotel' no longer denoted a place of lodging, but simply a place frequented by travellers. Someone else starting a restaurant near a train station or along a highway may then choose to call their business a 'hotel', even though they have no intention of providing lodging, as long as their expected clientele are likely to be travellers stopping in for a meal.
Whatever the history of the word may be, don't be shocked if you rock up to a hotel in India and can't get a room - some of them simply don't have any for guests!