Why do people invest in art when the stock market seems more reliable?

I’ve always been curious why do some people put money into art when stocks feel like a safer bet? Is it just passion, or is there something I’m missing? Would love to hear different perspectives!