And many of those councils contradicted previous ones..
Which is why they needed to many of them.
If Catholic doctrine had not changed over all those years, there wouldn’t have been the need for them all. The doctrine would have been established at the very beginning and never changed since then.
But you and I are both old enough to remember Vatican 2 and the changes and the absolute uproar it caused among the faithful.