Competition in an ecosystem primarily affects population size by causing a decrease in population size. When individuals compete for limited resources such as food, water, and shelter, it can lead to increased mortality rates and reduced reproduction, ultimately resulting in decreased population sizes. Therefore, the correct response is:
It causes a decrease in population size.