Apple gets to write the terms of service and you must do whatever is said. It's inherently anti-developer. Duh Epic broke the contract.
I'm not sure what people are expecting the legal system will do in favor of Epic. At best Apple will be found to use Unethical cornering the market strategies, but that's unrelated to the TOS.