Europe was able to colonize because it was already rich and technologically advanced. By 1700, more than 50 years before the British East India company came to control India, the UK had more than double the per capita GDP of India, and the Netherlands had more than quadrupled the per capita GDP of India.
Note of course that India was already a colony at the time. The origin of Arabs is 8,000 miles away from where I was born, but I have an Arabic last name. Guess how that happened.