The marketplace has pushed prices down so low (sub $5), in-game purchases or advertisements are the only way they can make a living.
If Google/Apple cared about their developers, they would force a minimum price. This way, it wasn't a race to the bottom. The end result is either large companies using the games as a loss leader, hobbyists that are releasing games and not getting compensated, or what we see now: games slapped with tons of advertising and in-game purchases. Personally, I would rather just see a higher priced game so I don't have to deal with the spammy tactics used now.