They are caused by third-party apps installed on your phone. Ads are a way for app developers to make money, and the more ads that are displayed, the more money the developer makes. This is why some of them are so persistent. You can get rid of pesky ads in a few steps.