Having a closed platform isn't illegal. Just ask Nintendo.
Anticompetitive behavior is illegal, even when you are anticompetitively competing in a market that you yourself chose to create by creating an open platform. Just ask Microsoft.
If Google's leadership didn't understand that legal restrictions their choice placed upon them, that failure is on Google's leaderhip.