If we gave out millions of dollars to all people around the world then money would be worthless. Sure, homelessness is terrible but it has to be balanced because let's be most things in the world would be worthless as shit if we gave out millions of dollars to every person on this planet.
Also I know you would say "Why wouldn't we just abolish money", see here's the kicker: Let's say I decided to work for you, and money is already abolished by then, however, because money is abolished, that means I'm a slave working for you basically, do you see how dumb it is to abolish money?