Well, when there is a high probability they will use the money to buy drugs - substance abuse is one of the primary reasons for homelessness in the US - then it does in fact matter what they do with it. Giving money to beggars is virtually synonymous with supporting the corner dealer in many cases.