Minorities in Afghanistan

Why was CAA needed?
Is CAA against Indian Muslims?