Since Erik ten Hag's arrival, there has been considerable criticism, and the pressure has been quite intense, making it increasingly difficult for him to perform. His past failure at Manchester United continues to haunt him, leading to his subsequent failure at Leverkusen.
Regardless of the situation, I believe Leverkusen's management's decision to take this swift action is absolutely correct. They would rather rebuild the team sooner rather than suffer a deeper setback with Erik ten Hag.
I heard that the dismissal of ETH cost Leverkusen 5 million. On the one hand, it's a lot for 2 games (excluding the cup game), but on the other hand, with modern prices in football, it's nothing. It can be assumed that Leverkusen saved a lot by losing these 5 million. This is literally a stop loss

The risk that Ten Hag would have caused more damage (and would have been fired anyway) had he continued as coach was very high. It was a difficult but right decision.