This is true of humans as well. We each make food selections based on what tastes good. We seek particular sexual partners because it feels good. We protect and raise kids because it makes us feel good to do so.
This causes all sorts of evolutionarily weird side effects like people treating pets like kids in order to access the same emotional state as parenting. Or beavers covering speakers with mud and sticks.
Instincts are deterministic, but learned behaviors.
The running water speaker experiment was done in dry land, and beavers are very wary of going out of the water because of their predators, yet they risked working over the speakers.
https://vancouversun.com/news/local-news/the-godf-otter-part...
There's been a disturbing trend with the return of the salmon for people to dress them up in little outfits and take selfies with them because they're so exhausted and easy to catch; it's like shooting fish in apparel.
The one I've read about that stuck with me was dam building by beavers. Some part of the behavior is driven by a dislike of the sound of running water. Someone did an experiment with speakers playing the sound of running water and the beavers near the speakers would attempt to cover them with sticks and mud.
In my head I'm imaging that sound is like nails on a chalkboard to beaver.