Because two organisms with exactly the same niche can't survive in the samehabitat (because they compete for exactly the same resources, so one will drive the other to extinction). However, species whose niches only partly overlap may be able to coexist.