Non-disparagement clauses (are intended to) effect people after they’ve already left the place of employment, usually. That’s why they’re bullshit and largely unenforceable.
Why they fired you isn’t really relevant when they’re suing you years later for saying something bad about them on Twitter.