Why is AR always equal to MR for a competitive firm?

Under perfect competition, price is given to a firm as determined by the market forces of demand and supply in the industry. Constant price implies constant AR. Constant AR implies constant MR under perfect competition.
So, AR= MR as shown in the diagram: