A mobile app will be notified whenever the operating system moves the apps between background and foreground. The operating system has to bound the environment run off a mobile application to improve the battery statistics.
This will also help with improving the user experience with the foreground app.