For countries that want to encourage connecting traffic on their airlines (usually, though I guess not always, the reason for transiting there), it also makes sense to make that transit attractive. Same reason many carriers get dispensation to send people with long transits to city hotels.