Normally they would infact treat wood specifically to resist rotting out, and to resist water for long periods of time.
Had they not treated it for stuff like this, then it would last maybee a season before needing replacement.
As for the electronics, I know they insulate the wiring on the rides with water tight seals, but the printed circuit boards that the computers are made of are probably screwed unless they put them inside water tight cases..