It stems from materialism. If there's no other world and we disappear with death, there's no salvation. So virtue makes no sense. Let's enjoy the few days we have to the fullest, that is, happiness in the modern sense.