Competition for Southeast Asia

Why were most but not all Southeast Asian societies reduced to colonies?

At the beginning of the nineteenth century only a small part of Southeast Asia was under direct European control. Spain administered the Philippines, and the Dutch controlled Java. By the end of the century most of the region would be in foreign hands.