As a very long term iOS user, when I saw this headline my first reaction was why is keyboard privacy even a thing i've never even bothered changing the keyboard of iOS and would certainly be prompted for any suspicious activity like mic or camera and would instantly reject it if i ever installed one. But this is very complicated on Android. I once maintained an Android phone for my Dad and the permissions prompt on that are so overwhelming that it's very easy to get people into 'accepting all' and I feel like this is the idea behind the design by Google. One shouldn't be worried about a keyboard spying about you and should be as easy as flip of a switch in settings from not allowing it but it's a lot more complicated than that on Android.
Well, iOS uses the same differential ML approach for their keyboard suggestion learning just like Google's GBoard does. So you kinda have the same concern there.