The three countries were already in ECOWAS, they got suspended because each of their governments were overtaken by coups, this agreement is between leaders who overthrew the previous government by force.
The coup leaders are choosing to secede from a larger confederation of states, together. Better than the worst case scenario but hardly a real win in context.