Why do large cities tend to attract more migrants than smaller towns?

Why do large cities tend to attract more migrants than smaller towns? Discuss in the light of conditions in developing countries.