You absolutely do not have to do shore excursions on a cruise. You are free to come and go at will from most cruise ships while they are in ports of call. Shore excursions are simply one means to explore the areas visited by the ship and to participate in available activities off the ship.