They made money by selling coffee, which costs less than a cent, for five bucks.
True. That's no reason to "leave money on the table" as they may have seen it, and being substantially cheaper than the alternative, when they could have been barely cheaper and attracting the same amount of people.