That's actually not true.
What it did was to enjoin enforcement of existing laws, many of which remain on the books.
A court cannot "legalize" anything.
If a court says laws against “x” are impermissable, it effectively legalizes “x”.
Abortion was illegal in my state the day before Roe, but legal the day after, so something obviously happened.
The court system in our nation is operating far outside the scope of its constitutional authority. All you have to do is look at the Massachusetts Supreme Court’s brazen declaration that marriage is an “evolving paradigm” to see that.