That's the point of most criminal and tort laws: Penalizing anti-social expected behavior in order to disincentivize it.
People can't overpay if they can't buy it at all. By putting it on the market the seller aids and abets their buying at higher than the true market price. This is a social bad.