People know Starbucks; people know Starbucks coffee. It's a very stable and well known experience to regular customers.
People don't know you; people don't know your software. I don't know if buying your software will actually cause me more inconvenience than convenience. (Buggy, bad UX, hard to uninstall, installs additional crap like browser plugins)
That's why buying an app is a gamble, and buying coffee isn't. That's why you cant make a good argument by comparing the price of your app to the price of a coffee.
EDIT: Actually I guess the $4 drinks are a gamble afterall. My only Starbucks experience is "normal" coffee. Which I guess is more in the $2 - $3 range.
It's about you knowing that Starbucks is Starbucks no matter which street, city, state or country you find yourself in. Whether you love or hate it, it's at least consistent.
That's why it's not a gamble.