Neither Freeland nor Carney want to be the next Kim Campbell. The Liberals are going to lose the next election badly whether or not Trudeau is leading it. I'm sure that Trudeau made the decision to step down ~6 months ago and is now just playing with the timing to maximum effect. Stepping down now basically pushes the election three months further out than it would otherwise be due to a prorogation to pick a new leader. That gives Pollievre 3 more months worth of rope and Trump time to sabotage Pollievre.