Even if the robber gives some of the money to charity or buys the victim a drink with the stolen money doesn’t change the fact that it was stolen.
This all of course assumes you agree that money you earn from your own work belongs to you. You could try to argue all money earned/value created belongs to the group.