>>118414471Comedy is actually derived from dissonance. To that end, laughing when you're nervous of uncomfortable or afraid isn't that far fetched. You're having the same reaction you would if you saw something that disrupted your preconceptions in more milder ways, like someone slipping on a banana, someone having an unexpected outburst about a something that seems uncharacteristic for them, or an unusual bit of wordplay.