There's a difference between having a quota and having a target.
Targets can be missed, and reasons for the miss can be explored, e.g. were there sufficient qualified candidates in the pipeline? If not, what can be done about it. The hope is that over time, a target will be hit.
That said, I agree with you that quotas are problematic. They are the wrong solution for the problem of lack of diversity.