Where a species could live is wider than where it actually lives
The range of conditions a species can survive in when it has no rivals is called its fundamental niche. The part it actually holds once rivals are there is called its realized niche. The small barnacle's fundamental niche covers both the high and the low band of rock: once the big barnacles were cleared, it held on lower down. With the big barnacles present, its realized niche is only the upper band.
A rival eats a shared resource down below your threshold
Every living thing has a food threshold: when food falls below it, more of them die than are born. Suppose A's threshold is 2 and B's is 3. Raise the two together, and the food gets eaten lower and lower. Once it drops below 3, B starts to shrink while A is still growing, and A keeps eating the food down to around 2. At that level B cannot get enough to eat, and its numbers keep falling. So the side with the lower threshold wins: it can push the food down to a level where its rival can't hold on and it can still live. Change B's threshold to 1.5, and A becomes the one pushed out.
Only when their conditions don't overlap can two species both stay
In 1934 Gause put two kinds of paramecium, Paramecium caudatum and Paramecium aurelia, into the same flask to eat the same bacteria, and in the end only P. aurelia was left. When he raised P. caudatum with Paramecium bursaria instead, both stayed: P. bursaria mostly ate yeast at the bottom of the flask, P. caudatum ate bacteria in the water, and neither pushed the other's food below its threshold.
When resources are limited, two species whose niches overlap have the hardest time living side by side. The same goes for businesses in the same trade: if two shops' customers live far apart and buy different things, neither can push the other out. So treating every competitor as having exactly the same niche, and declaring that only one business will be left in the market, is a misuse of the principle: differences in what customers like and where shops are can be enough to keep several of them going.