Because the plaintiffs are Swiss. Who else should they sue? Similar cases have happened elsewhere, e.g. the Urgenda case in the Netherlands.
Pointing to the inaction of other countries as an excuse for one's own inaction is a weak argument. Good luck suing Russia. (They were actually a member of the Council of Europe until 2022, so this decision would have applied to them...)