The principle of “treating other as you would like to be treated” apples to religious diversity because it is political ideology that advocates for the equal treatment of all individuals.
Religions advocate for peace, compassion and equal treatment of all people. Politics does the opposite. It tries to polarise and divide people.