Keep in mind that in the common vocabulary of the times when that phrase was written, "well regulated" meant "well-organized, well-trained and well-equipped", not "well-controlled".
Exactly. That’s why the British troops in America were called “Regulars”.