In the last line, "useless stars" indicates that the stars are useless or meaningless to a beggar. He does not care whether they are beautiful or not, whether the exist or not. He thinks about buying foods for the children.
On my way to work everyday, I come across beggars of various kinds... and i don't understand whether I should pity them or be careless
Here's a poem describing the same