When people fall in love or when they have sex, their brain releases lots of chemicals (oxytocin) that make them feel good. When a mother cares for her baby, the brain does the same thing. Most people like to feel good. in fact rats that are fitted with electrodes that stimulate their pleasure center will just keep pressing a lever to stimulate the pleasure center to feel good, often neglecting to feed themselves.
Evolution has made us do things that make us feel good, whether we are rats, humans, or other kinds of animals. Are we fools if we do things that make us feel good? If so, then all of us are fools. Most of the time, what makes us feel good also results in performing tasks that allow us to survive and reproduce. For example, children love to play because playing makes them feel good. Playing is how young mammals learn the skills they need to survive as adults. A kitten chasing a piece of moving rope is learning how to hunt for example. Survival and reproduction are necessary for any species to persist. Lots of species become extinct throughout evolutionary history, not because they are smarties that refuse to do things that allow them to survive and reproduce, but because they either could not compete, adapt to the environment or they were unlucky (e.g. being wiped out by catastrophic mass extinction events). Not surviving or reproducing therefore is not necessarily the result of being "smart."