It's a crappy decision on their part, no doubt. But saying it should be illegal is way out of line.
If they made their own software and didn't put it on Android, sure. But this isn't it.
In this case, a platform buying up cross-platform software to eliminate support for competing platforms is clearly causing harm to consumers. In similar situations, a government might legislate to force companies to be either the pipe/platform or a content supplier but not both, to eliminate precisely this type of anti-consumer incentive.
Also, isn't the barrier between iOS and Android devices artificial? I don't see a veritable technical reason why the two platforms can't be compatible.
No, not even remotely. They are completely different operating systems.