Seems a sensible time to do it from their side to be fair, it seemed inevitable that he was going to be given the boot but it would have looked worse if they’d had to do it after he’d won a trophy, however tin-pot a cup it is.
The level of dislike may also now be so high that they didn’t want to give Mourinho even the minor satisfaction of having won something else in his career.