Yeah, there´s probably staggering overheads, making a cup of coffee is such a complex operation that you probably need extremely high paid staff.
But Starbucks isn't selling coffee, they're selling the experience (which is just as well cause their coffee isn't all that) and some cheap conspicuous consumption.