They also have limited amounts of money, and lawsuits are expensive. Better to get precedent established first before suing everyone else (I'm actually surprised that they picked two fights because of this).
Epic wants an antitrust decision from the courts and/or regulators, and that requires them to get a clear, unequivocal rejection from the platform owner to have unchallengeable standing. A game console maker would have met Epic halfway, but Google and Apple did not.
The timing is probably also critical: Google and Apple just testified to Congress that they're not engaging in monopolist behavior because they treat every applicant equally. To back down from that right now would mean they perjured themselves before Congress. That's something no one in their right mind would want to do.
And Epic's lawsuit(s!) aren't about brining those gardens down.
They're about Epic, and other developers, getting absolute control over their place in that garden.
They don't care that the walled garden exists.
They're just angry about the cost of the manure.