I would say that it is probably one of the reasons. Another is that you are just not thaught about religion as a way of living and more just like any other subject like physics or history. It’s more of a objective look at it and what makes up that religion. Like, Hinduism believes a and therefore does b while Christianity believes c and therefore does d and so on.
It also helps not being raised by religious people of course.