Caffeine is lowkey the most normalised and profitable drug addiction in the world, and it doesn’t really even do anything. The whole ‘giving you energy’ thing is a myth, all it does it make you tired without it. That’s why caffeine legally has to be listed as a ‘flavouring’ on the packaging, despite nobody on earth having a clue what it’s supposed to taste like

all it does it make you tired without it.

Maybe if you’re already taking it regularly this is true, but we know that it blocks some adenosine receptors, preventing the buildup of adenosine, which is one component in making us feel sleepy.

Making you not sleep isn’t really the same as giving you energy, and since most people take it in the morning anyway it doesn’t really matter
I know you said “gives you energy” originally, but is that how most people think of coffee? I tend to think of it as “When I drink this I’ll be less tired.”