Actually, the apocryphal books (e.g. Tobit, Judith, Wisdom of Solomon, Sirach (Ecclesiasticus), Baruch, 1 and 2 Maccabees, the Letter of Jeremiah, Prayer of Manasseh, as well as additions to the books of Esther and Daniel) were never added to the Hebrew canon.
The Hebrew bible (Tanakh) was well-established before the apocryphal books were written.
Even though some apocryphal books such as 1 Maccabees and 2 Maccabees are considered historical, they were never considered to be inspired by God.
Josephus, a prominent Jewish historian from the 1st century AD, listed only 22 books as Scripture in his work "Against Apion" (Book 1, Paragraph 8). These 22 books correspond to the 39 books of the Protestant Old Testament.
Some books were combined and ordered differently in the Hebrew canon versus the Protestant Old Testament. However, the wording is the same.
Historically, the apocryphal books were never recognized by Jewish rabbis or Judaism as part of the canon.
The Septuagint, a Greek translation of the Hebrew bible, included these books, however. But this was a translated version, not the original.
These apocryphal books were referred to as anagignoskomena (ἀναγιγνωσκόμενα), meaning "things that are read". It was believed that they had value as reference, but not equal in value to the books inspired by God.
The apocryphal books were written after Malachi, the final book of the Hebrew bible written around 430 BC. The apocryphal books were composed during the Intertestamental Period, the period between the Old and New Testaments, which is often called the "400 silent years", because no books were considered divinely inspired by Judaism.
Because the Septuagint (Greek version) contained the apocryphal books, they were accepted as deuterocanonical by Catholic and Orthodox Churches.
This term "deuterocanonical" was coined in 1566 by Sixtus of Siena, a Catholic theologian, to describe the apocryphal books as part of the Septuagint and accepted as canonical by Catholic and Orthodox churches, but not included in the Hebrew Bible (Tanakh).
---
There are many errors and sections that contradict the Bible in the apocrypha.
For example, the book of Tobit recommends the use of magic and divination to cast out demons (Tobit 6:5-8) and giving to charity for forgiveness of all sins (Tobit 4:10-11).
For more details on other errors and more information on the apocrypha, please see:
https://www.gotquestions.org/apocrypha-deuterocanonical.html
https://carm.org/roman-catholicism/errors-in-the-apocrypha/
---
It is important to understand that God, being all-powerful and all-knowing, moved men who wrote down the words of God in the Bible. God led His disciples to recognize His writings, and God preserves His word for all generations.
Even though people have attempted to make additions to the Bible, the truth of what the original word was has never been lost.
In fact, God warns against any attempts to add or remove words from the Bible:
"You shall not add to the word which I am commanding you, nor take away from it, that you may keep the commandments of the Lord your God which I command you." (Deuteronomy 4:2)
"I testify to everyone who hears the words of the prophecy of this book: if anyone adds to them, God will add to him the plagues which are written in this book; and if anyone takes away from the words of the book of this prophecy, God will take away his part from the tree of life and from the holy city, which are written in this book." (Revelation 22:18-19)
God does preserve His word.
"The grass withers, the flower fades,
But the word of our God stands forever." (Isaiah 40:8)