Since there's a mobile-optimized web version, it's also free-ish on iOS.
I know people who have used it on iOS for years for free by just using the web version and never buying the app, and they seem quite happy with that setup.
IIRC the Android app is free because it wasn't started by Anki's original author. It was created by some other folks, using the source for Anki desktop.