I would agree with AlegreFe, Martin Luther took out some of the books in the Bible because they went against his theology.
He had originally put those books of the New Testament in an appendix, but later put them back in because the other reformers pleaded with him to do so.
He also added the word “alone” to Romans 3:28 to make it say: “Therefore we conclude that a man is justified by faith (alone) without the deeds of the law.”
To justify the removal of these books he found that the Jews in Germany at the time used the Hebrew version of old testament, which don’t include these extra 7 books, even though to this very day there are some Jews that still use the Greek Septuagint.
Martin Luther was very very clear in his reasoning why he removed James, and he called it “an epistle of straw” even after putting it back into the Bible.
I wonder if this is the type of thing that the Bible was trying to warn us against when it warned us not to “add to or take away” from scripture?
Today Protestants will say it was because they are not inspired and they will give reasoning that they are geographically and historically inaccurate, but here is a link about this line of reasoning.
5 myths about 7 books. by Mark Shea.