It turns out that the reason the customer Ben Thomas (played by Will Smith) launched into this verbal attack against Ezra was to test him whether he was a candidate for an act of kindness that Ben wanted to bestow.