The horse collar penalty was created after Roy Williams injured Terrell Owens in 2004, along with some other high profile injuries. Yanking someone down by the collar while they are running apparently creates a high risk of knee and leg injuries.
The QB in the pocket is not running, so the injury risk is not the same as yanking down a WR or RB from the collar or nameplate while he's running down the sideline.