Indeed.No. Those were the rules. The rules directed the DM to track alignment deviations and do those things.
1e and early 2e had exceptions to the rule. However you were not really supposed to be one. Classes, races, and monsters were supposed to run on the archetypes they were based on. Exceptions existed but were supposed to be rare "Hmm interesting" or gotcha moments.