In raids, the dodge bug normally occurs as terrible as possible. Before you can at least deal a little damage during the loop, now you can't do anything even switching pokémon, or you would cause the Pokémon that you switched into to faint.
Attack IVs are used for the 1 additional damage per quick attack, you don't want to fail soloing Machamp by dealing one Hit Point less.