in biology, sometimes in organisms(especially males), they can use up their energy for like 110% for procreation so thats why some insects or rodents die after sex (especially the males), so i think it made his adrenaline pumped up thinking that thought and it made him alive due to that. so remember kids, if you are in a tight situation, be horny, it will save you