Ever wondered why these "laws" were not repealed or even questioned by the ruling party in the last 9 years, even with an overwhelming majority in parliament?
For the same reason that the Republicans continue believing, in the face of overwhelming evidence, that they have a chance with black voters.
No matter what the BJP tries, they will never get more than 10-15% of the Muslim vote. Hindus accept laws contrary to their interests. Muslims come out on the streets and arm twist their political beneficiaries into reversing judgements and acts that they perceive to be against their interests.[1]
There are ways of engaging with communities in democracy, rather than creating laws which one group ( majority ) think is right. which is not a great suite of the current ruling party, to be honest. Farmer laws, demonetization etc are some of examples.
BTW, If a party cannot do what is required for the country, they probably are not right for ruling the country.