Sometimes there's something else at play though, because there are situations which cannot be explained by offer and demand. For example, developers are paid less in average than for example some consultant jobs while in my view (and I'm a consultant) both the skills required for a developer are higher while additionally the available workforce (supply) is lower for developers as well.
I mean, consultants, they grow on trees and I know what I'm talking about, I sometines interview new hires as part of my job. Developers, less so.
I don't have an explanation for this, it's a strange effect. But it's just an example, I have observed multiple times this unexpected deviation from the law of supply and demand.
My point is, this law is not a sure fire way to explain any price.
There is a higher demand for a certain kind of consultants (let’s call them “good”) and fairly low supply. There are plenty of people who call themselves consultants but nobody needs them since this is a bit of a winner takes all market (.e.g. like being a broker or even a lawyer to some extent)
I have friends in strip mall businesses and they have moved locations for better landlords.