Very good question.
The answer is found in the comprehension of the Old Testament. The major prophets explained in detail how the ritualistic practices were no longer were sufficient enough for God.
In the New Testament Christ does not mince words. Matthew 12:7. Christ was not against organized religion. He was against the practices and suppression of the Jews by the Jewish leadership. He did not come to rescue the Jews from the Romans. He came to rescue the Jews from themselves. From the pitfalls that the Jewish people had fallen into (political correctness, corruption); whereas, the leaders had placed themselves between the people and God and were therefore leading the people away from God once again.
Paul writes letters to the churches about the pitfalls of relying wholly on the congregation of men to run the church. John encourages the churches in Revelation to endure the trials and temptations for the reward.
Today's organized religions are on the same track as the Jews in the New Testament. Political correctness, corruption, false teachings and teachers, idolatry, marketing, the worship of money, lack of mercy.
Also, remember that Christ told Peter in Matthew 16:18.