To me, religious leaders can venture in to politics because they have a deep understanding of needs and concern of their community. By engaging in politics, they can represent the interest of their community and advocate for policies that benefits their congregation and the wider community.
Also, many religions emphasize the importance of social justice and caring for the vulnerable. So therefore, religious leaders can use their platform to advocate for policies that promotes justice, equality and compassion.