Why do some states have more representatives than others?

Its based on population.If a state has a larger population then they will have more representatives