Courts are also not a legislative bench.
But they are being allowed to thwart lawful legislative actions by the people and the legislatures.
The left believes the Constitution is an old, obsolete document that doesn’t apply to today’s society. But they know they would never get the votes to change it democratically. So they see they are able to change it at will through the judicial branch. That’s why these left-wing judges are ruling this way. They don’t believe in that document they swore to uphold.