Two different power sources with same voltage and current producing different results
The charger and the powerbank are not the same. They have the same rated outputs. Their actual voltage will vary, and the actual maximum current may be greater than what is specified.

It is also possible that the ratings for one or both of them are simply lies and they can't provide nearly as much current, or the output voltage isn't even close to 5V.