A $5 coffee also buys you a place to sit down and use WiFi, and a bit of social interaction or "lifestyle". Nobody pays $5 per cup of coffee at a supermarket.
No app developers include "installed by a human" and the permission to go sit on a couch at their office for half an hour in the price!