There is a long history with some religious groups. Many denominations trace their roots back to the 1500s or 1600s. Roman Catholicism can be identifiably traced to the 7th century with various developments leading to it going back to the 3rd and 4th centuries. Islam was founded about 1300 years ago. Judaism goes back to about 1400 BC.
Just because something has been practiced a long time or the organization or movement goes back for centuries or even millennia, does not mean it is of God.
The apostles warned against falling for traditions.
“Beware lest anyone cheat you through philosophy and empty deceit, according to the tradition of men, according to the basic principles of the world, and not according to Christ” (Col. 2:8).
Paul was worried that the Galatians having left the pagan traditions would veer off into the error of the circumcision (Gal. 4:8-11). In other words, the Christian in the region of Galatia had practiced idolatry for many generations before hearing the gospel of Christ. Their long-standing tradition was wrong.
The history of something does not make it right.