He was not given the money intentionally. I'm pretty sure the passenger would have been unwilling to give that much cash to him.
Meanwhile, the giver in this scenario is fully willing to give the money, and the receiver can take it without any moral burden.