market equilibrium quantity $\ne$ firm profit maximising quantity?
In intro micro you usually assume that every firm in a perfectly competetive market has the same costs and production function etc. Hence, the MCs are the same for every firm. Under this assumptions, every firm will produce the same quantity in equilibrium.