"We are compelled in virtue of our faith to believe and maintain that there is only one holy Catholic Church, and that one is apostolic. This we firmly believe and profess without qualification. Outside this Church there is no salvation and no remission of sins, the Spouse in the Canticle proclaiming: 'One is my dove, my perfect one. One is she of her mother, the chosen of her that bore her' (Canticle of Canticles 6:8); which represents the one mystical body whose head is Christ, of Christ indeed, as God. And in this, 'one Lord, one faith, one baptism' (Ephesians 4:5). Certainly Noah had one ark at the time of the flood, prefiguring one Church which perfect to one cubit having one ruler and guide, namely Noah, outside of which we read all living things were destroyed…** We declare, say, define, and pronounce that it is absolutely necessary for the salvation of every human creature to be subject to the Roman Pontiff.**"
Pope Boniface VIII, Bull Unam sanctam (1302) [Solemn Definition]
"The most Holy Roman Church firmly believes, professes and preaches that none of those existing outside the Catholic Church, not only pagans, but also Jews and heretics and schismatics, can have a share in life eternal; but that they will go into the "eternal fire which was prepared for the devil and his angels" (Matthew 25:41), unless before death they are joined with Her; and that so important is the unity of this ecclesiastical body that only those remaining within this unity can profit by the sacraments of the Church unto salvation, and they alone can receive an eternal recompense for their fasts, their almsgivings, their other works of Christian piety and the duties of a Christian soldier. No one, let his almsgiving be as great as it may, no one, even if he pour out his blood for the Name of Christ, can be saved, unless he remain within the bosom and the unity of the Catholic Church."
Pope Eugene IV, the Bull Cantate Domino, **Council of Florence (A.D. 1438 – 1445) (1441) [Solemn Definition]
Vatican II can only be understood in the light of the past. There are many parts of it, which understood outside of the past teachings, are incorrectly understood quite easily.
The reasons why things were worded this way, and who was responsible for it and their motivations, can be read in various books about the Council.