It's basically like a government of the company and a union is just another party that can get elected.
It's just that the only way a union member can get into a work council is getting elected just like every other employee.