Under maritime law, if someone becomes ill while on a ship, it is the ship owner's responsibility to provide the individual with reasonable medical care.  That does not necessarily require the ship owner to go to the expense of medevacing someone to a hospital.  If the person were certain to die otherwise, it might.