2 dollar coffee is quite cheap :-)
(And Starbucks is so dark and burnt I can't drink it nowdays)
Mom-and-pop places don't have that certainty. There are both great and terrible ones.
If you're in an unfamiliar place and just want a coffee, Starbucks can be just the ticket. It's not a gamble. And if you enjoy coffee and want something above "adequate", you'll also be keeping an eye out for promising mom-and-pop places to switch to.
And these days that's just paying someone to put a 0€40 Nespresso pod in the machine.