Senate Republicans refused to impeach Trump because he was about to leave office in a few weeks anyway and you could just investigate and charge him with crimes then. After nearly 3 years of Congressional hearings and investigations, the Justice Department charges Trump for his involvement in January 6th and his lawyers argue he had Presidential immunity and by not being convicted during his impeachment trial, he was already acquitted.
With the courts on their side, that was the plan.