App development and maintenance costs money. Free apps in particular have to raise revenue through advertising to provide free services to their users. Most apps offer paid ad-free versions.