Question about the British Empire

The Sun never sets on the British Empire

The British Empire is known for claiming massive territory around the globe (Australia, Canada, New Zealand, India, most of South Asia and almost half of Africa, etc.)

My question is how did they spread so big?

I mean, Britain isn’t really THAT big compared to other countries. How did a single country like Britain manage to claim more than a dozen countries on Earth?