Background Sync is still running after closing the app

Hi,

I am studying the background synchronisation of mails with WorkManager (from what I see). I am trying to understand why the PeriodicTask is not killed when the application is manually closed (not force closed) because on my application it is the case.
Do you know what I have to add to keep the task running after the app is closed like K9-Mail ?