Well, homeless people, as qwertyqwerty says, are not necessarily beggars. The opposite is also true - beggars are not necessarily homeless.
beggars beg for money
homeless people have no homes
In my country sometimes very decent, law-abiding and employed people happen to lose their homes and become homeless - just a regrettable concatenation of circumstances.