Why is CH the Country Code for Switzerland?

It is because the Latin name of the country is Helvetia, and it can still be seen on various stamps. The full form of CH is Confoederatio Helvetica which means Swiss Confederation.