actually, the way the Crown treated the colonies is what was illegal...the Declaration set things right again.
Why? The Crown had invested ENORMOUS resources in the colonies, and needed to earn a return on Her investment. By what right did these British subjects misappropriate the infrastructure of those who had paid for them. It wasn’t right then and it isn’t right now.