The airline takes the passports and requests immigration to provide transit visas, which some people get, and some people don't. Those that get them get to go to a nice warm hotel and wait for their flight, those that don't get them issued sleep on the floor with a 10 euro voucher and phone card...