The author didn't just make it out of the good will of his heart, he wanted to turn a profit and set out to make money off the iPhone version from the outset. The $100 fee is a triviality in the face of the hundreds and hundreds (thousand, even) of hours it takes to create and maintain Anki on iOS. You don't have to look far to see the development of the native version of the iOS app was even contracted out, for pay. It was taken very seriously.
Not all FOSS software developers are against making money. Often FOSS projects can be a starting point to launching a commercial product or service, whether it was originally intended to be one or if a long-time hobby project happened to grow to the point that making a business around it becomes a viable new option.