@fmf said
This probably had less to do with religion than with the standard desire of those in authority to control
What is religion if it can't control followers? They just become myths. This is why religions typically have some story of gods punishing for disobedience, including in the afterlife. The River Styx, hell, Purgatory, etc.
Discouraging the gaining of knowledge helps retain that control. The more knowledgeable people are about their surroundings and society, they more they can question. The more educated you about science, the more you question Genesis.
In the OT, only a select few priests could enter the temple and speak with God, and even fewer could go beyond the veil of the tabernacle. It was the first "pay no attention to the man behind the curtain".
Don't bite the apple, don't look inside the Ark, "no man may see my face and live", walk by faith and not by sight, doubting Thomas, Pandora's box, etc. Ignorance is praised while knowledge is punished. Fast forward, the white Christian's hero, Trump, said "I love the uneducated".
Ignorance and fear are the tools for control in religion.
And also for politics, as that same group of religious people are currently banning teaching the history of racism in the U.S., and some places like Texas have tried to replace teaching evolution with creation, and put "warning stickers" on evolution textbooks.