There's no survival imperative to a lot of things that living creatures do. Elephants will deliberately eat fruit that ferments in their stomachs in order to get drunk. Dolphins will play with pufferfish to get high.
Most higher animals will engage in play of different kinds. Many, including rays, enjoy being petted or stroked. Gorillas and chimpanzees have a sense of humour, frequently playing simple tricks on each other or their human handlers and enjoying the slapstick outcomes.
Only the most primitive of animals have behaviours which are wholly survival-driven. Clearly you do not understand what evolution is or what it does. There is no efficiency or direction in it (that would require a designer), there are just changes which happen. These changes produce, not only differing physical configurations, but behavioural changes. In some cases, these changes are beneficial in that they improve social interactions in herd/troop/pack ainmals. In many cases, a behaviour from which a creature derives pleasure is beneficial to the extent that it can actually improve physical health.
The highly-developed sense of self whch seems to have been characterisitc of most hominin or hominid species, including ourselves, is an evolutionary event which has allowed us to prosper by manipulating our environment. Behaviour such as music production and enjoyment and humour both assist in poducing happier, and therefore healthier individuals, and as shareable pleasures, increase social cohesion.
There's more to survival than eating, fighting and fucking, and observation of the behaviours of more advanced species demonstrates the effectiveness of apparently non-survival-oriented behaviours in species success.
There is, therefore, no compelling reason to deny that consciousness is part of our evolutionary make-up. On the other hand, there is no compelling evidence to show it is a gift from some nebulous Supreme Being or all-too-human 'god'