The idea of perfect competition builds on several assumptions:
(1) all firms maximize profits
(2) there is free entry and exit to the market,
(3) all firms sell entirely identical (i.e., homogenous) goods,
(4) there are no consumer preferences. By looking at those assumptions, it becomes obvious that we will hardly ever find perfect competition in reality.