Art is peripheral or unnecessary most of the time to most people. But that does not mean it is not valuable.
People do need to make art, and have done so for so many many centuries.
And yes, some people do want/need the art other people make. But the attention is generally given to art after basic needs are met: food, clothing, shelter (so in our era jobs, transportation to & from, etc. which takes up most of our days).