Edit: Apparently my downvoters can’t think about what really happened here so I’ll explain it.
In App Review this app worked fine. Oh, the keyboard was likely lame and not useful, but the scam screens were no where to be seen. Then the app is approved and placed on the store. Now the scam screens appear.
It’s trivial to do, is done all the time even by legitimate developers, and incredibly hard for Apple review to detect.