Assuming no metaphysical reality, and everything is just spacetime and matter, where do the moral concerns regarding suffering and pain come from?

This comment inspired me to make the thread Is the universe old or young?