From thunder + box. Senses 1 and 2 (“portable commode; any lavatory or toilet”) are probably because of the noises that may be made while defecating.
Practice speaking and memorizing "thunderbox" and many other words and sentences in English.