The difference here is the young lady gave away something that was not hers to give in the first place.
There's no comparison to the scripture you cited.
Having said that, this young lady's heart was in the right place, her own wallet/money should've been also. She should've paid, the coffee wasn't hers to give absent payment.