Money allows you to get joy though. It's a tool that allows you to get more out of life and "enjoy" life. With money, you can go traveling, go on fancy vacations, splurge, go to 5 star Michelins (I know there are only 3 Michelin stars, but 5 star Michelin is a term used to describe best of the best), etc
But for some people, those things only bring superficial, ephemeral enjoyment and happiness. And after a while, they can cease to bring even that. Some of the times I've been the most unhappy in my life were when I was on what should have been fabulous vacations (e.g. touring beautiful historic places, dining at the best restaurants, staying at the nicest hotels, etc). I knew how fortunate I was to be able to do these things, and I felt like I
should be happy and enjoying it, but this just made the empty sadness feel even worse.
I actually really envy people who can truly enjoy life by having/spending money, and I don't doubt that there are people for whom this is the case. But money isn't a panacea for everyone. If it were, then
rich people wouldn't CTB*
* I know not everyone on this list was rich, but many were. It's also just a list of 21st century suicides. The list would of course be much longer if it went further back in time. It also would be much longer if it also included people who attempted (but survived) suicide.