This is Shanks' fault for not locking the damn treasure chest.
That's the point, though. It's pretty clear that Luffy is actually rubber Jesus at this point, going around feeding the poor, healing the sick, and forgiving people who betrayed him to help them.