Well, people consume cocaine for a reason. But I understand your objection. It is a bit reductive to think like this.
Would you say cocaine makes those people happy?
Yes, at least some of them for some time.
I remember an old addict speaking of cocaine as if it was his only true love. Waxed poetical about it, the way we remember our first kiss.
Seems that at least some people are wired this way.
He’s a comedian so it might just be a bit but Bert Kreischners comments on alcohol fit that description
https://youtu.be/MljeQzcmUfE
Drugs 100% make people feel happy.
... until the CNS homeostasis stops responding to them, which is why they keep taking bigger hits. Something more complex is going on.