Minorities in Pakistan

Why was CAA needed?
Is CAA against Indian Muslims?