Memory loss from sleep deprivation is an evolutionary advantage. If you remembered how rough the first few months of new children are, you wouldn't do it again.