It is not about equality or discrimination. That is a totally wrong way of looking at this issue.
First, a temple is not a public place for anyone and everyone to enter. There is bulky literature available in our ancient texts about what exactly a temple is and rigid rules to be followed during construction, daily maintenance, daily rituals and so on.
Strictly speaking, religion and caste may not be important, but what is important is whether somebody is pious, whether somebody studies Hindu scriptures such as Bhagawad Gita and Upanishads, and performs yoga, pranayama and dhyana. That is why all Hindus were not allowed entry in the ancient times.
If you want to go to a temple, then you must respect a temple's rules.
Secondly, in many Hindu homes, we have a room or small place to perform prayer and rituals to Gods. Even all the family members are not allowed into this place at all times under all conditions. It is not about equality or discrimination.
Thirdly, consider the atmosphere in our country. It has always been a fight between Hindus, Muslims, Christians and other religions. Perhaps, they may be living together peacefully to some extent, but the fights and tensions among them are also significant. Politcial parties alone are not to be blamed, but even at the level of common non-political people, there is a lot of hatred among people of different religions. A few religions purposefully spread hatred, misconceptions about Hinduism. This is happenin