They had no choice. Trump literally rewrote the republican party in his image. Congressmen who weren't falling in line got fired or forced to retire. Many many times, eg see Liz Cheney. The last time a purge like this happened was at the time of the Civil War. Even super-popular FDR tried taking out conservative democrats but wasn't successful (democrats don't have that kind of tribal discipline).