Why wasn't Thailand Colonized?

Why wasn't Thailand Colonized?