Immigration officials will often come onboard cruise ships to check documentation and the process of keeping the passports centrally makes it much easier and faster for the cruise line and passengers. It's worth noting though that on the majority of cruises the cruise line will not keep your passport.