Apple restricts where advertising can appear — ads can't be injected into system UI, the Lock Screen, or notifications used purely as ad delivery, or otherwise pushed onto surfaces outside the app's own interface.
Usually caused by a monetization SDK that pushes ad content through local notifications or a widget as a way to reach users outside the app.
"Your app displays advertisements outside of your app's own user interface, per guideline 2.5.18."