Another key point: the type of people who are politicians in America (especially local politicians) are "joiners," and tend to join many different community organizations for 1) the social connections and 2) the chance to be known just enough by just enough people in their town/district for electoral reasons. The type of person who is civically engaged is the type of people who recognizes the intrinsic value of places of worships as community spaces, even if they don't personally have devout beliefs (or beliefs, period).
This. For example I once posted about a DFL Millennial State Rep who mentions on her site the Episcopalian church her and her husband attend as an example of how liberal Millennials are not loyal to Catholicism in any sense since they almost certainly converted to Episcopal (her maiden name implies a likely Catholic background and definitely not an Episcopalian one.) Now most such people don't actively convert even if they cease identifying as Catholic but someone who gets involved enough to become a State Rep at such a young age is far more likely to.