The developer accounts needed to publish an app cost money. Google charges a one-time fee of $25, while Apple charges around $99 per year.