The Universe is unimaginably vast. It does not have purpose. It simply is. In the face of the Universe’s near-infinite indifference, we must decide our own purpose.
We might decide that our actions are inconsequential, but that isn’t true. Everything has meaning, if we decide that it does.
We might decide that nothing really matters. If that’s true, then why not choose to do something nice? If malice doesn’t matter, then what purpose can it serve?
The Universe does not care about you. But people can, will, and do.
A very good book on that subject https://www.thebeginningofinfinity.com/