Specifically, price only equals marginal revenue in perfect competition. Price equals MR in perfect competition because your demand curve is horizontal. No matter how much you produce, it always sells at the same price. In other market structures, you can raise or lower prices.