If anyone had bothered to read the terms of service, they would know that they were giving their permission to do exactly that.
And since there's no law against it... It's legal.
You almost surprised that Meta/FB is immoral and unethical. It's been that way since the start.