It's definitely not true that all men's lodges/clubs were religious in nature. The big three service clubs (in the US, at least) are Rotary, Kiwanis, and Lions, and none of them have ever been religious in nature. (Though certain in the eras and areas where they had the biggest membership, the populations would be overwhelmingly American protestants -- but that's demographics, not organizational affiliation.)
Freemasonry may or may not be "religious" depending on your definitions, but has traditionally been a target of some faiths due to perceived conflict between the club and the church.