It’s a different outlook on life when you see yourself as a part of the entire cosmos, rather than just an inhabitant of a village, city, country or even planet Earth. When you acknowledge that we’re all tiny parts of an enormously vast web of life. On top of this only during a short period in time, unless you believe in some form of after life.
When you look towards the sky and notice far away stars, there’s a chance for your problems to shrink.