The green wire in the 120 VAC service cord is the equipment grounding conductor and under normal conditions is not a current carrying conductor
The green wire is connected to the panel and the ground bus in the trailers service panel ( It is isolated from the white or neutral conductor)
The metal frame of the trailer is bonded to the equipment grounding conductor
By intentionally grounding / bonding the frame , if the frame becomes energized this low resistance path to ground will carry the current and activate the overcurrent device. ( Breaker trips / fuse blows )
If the frame is not intentionally and effectively grounded , if the frame becomes energized and you , standing on the ground touch the frame then you become the current path to ground
If the receptacles in the campgrounds pedestal were all GFCI protected that would solve some problems and create others
A
generator that is not intentionally grounded ( IE : Driven Ground Rod) is a floating system or not referenced to ground or a separately derived system and there is no potential / voltage to ground
The code cannot determine if you are connected to a campground pedestal or a
generator so the assumption is you are connected to utility power / pedestal which is intentionally and effectively grounded
The reasoning that by bonding / grounding the metal trailer frame to the equipment grounding conductor you are creating a hazard is not factual
Bonding / connecting the neutral ( Grounded ) conductor to the frame does introduce a hazard
Connecting neutrals and equipment grounds together in the trailers service panel also introduces a possible shock hazard .