Industrial organisation

Why does an individual firm in a perfectly competitive market generally treat the market price as given?