Charles

You turn on your gen, you plug in grandpa's steel cased antique drill, you arm/leg brushes against a water pipe that sticks out of the ground near your boat which is on the hard. There happens to be a 60 volt difference between your gen ground/neutral and the marina's ground/neutral and you get dead.
How? Sitting in the bed of a truck and running stuff via an extention cord, the generator is completely isolated from the earth ground (i.e. it's floating) So there is absolutely no circuit to earth ground, no voltage potential. Only voltage is from generator hot to generator neutral/ground. So if you took grampa's steel cased drill and tossed it on some damp dirt, nothing would happen. No current would flow.
If you attach to a building, that's the case Charles Erwin describes - 'cause it's now (maybe) attached to the earth.
This is exactly what the OSHA thing posted earlier said - running via an extention cord, no ground needed. Hooked into a building's wiring you should have a ground rod.
Every RV ever made doesn't use a ground rod running a genset.
Me? I'd happily plug the boat into the generator running in the back of the truck.
Edit: - Everything I say is wrong if the keel is grounded and bonded to the 110v ground inside the boat.