Why bad apples thrive in companies while management stays deaf, dumb & blind

This is a phenomenon I’ve noticed in software companies in the US. Bad apples come into a good workplace, create a mess, stick on to their jobs slowly poisoning the well, creating chaos. People keep giving feedback to the management which goes unheard, and slowly the good people leave until the company is left with whoever managed to stay on through the chaos.