They remained independent because they served as a buffer between French Indochina and British empire and due to the reforms of Rama IV and Rama V. Cool fact: they actually have managed to get those two countries to fight between themselves over Thailand.
Combined with its gradual movement, can drastically reshape the landscape over hundreds or even thousands of years. The ice erodes the land surface and carries the broken rocks and soil debris far from their original places.