What is the meaning of Wet_the_bed?

To urinate in one's bed (during sleep).

To go bad, to fail. Often said of machines; a euphemism for shit the bed.

Source: wiktionary.org