Why does my iPhone exit me out of apps?

I'll be on an app for 5 minutes and then it sendse back to the home screen. I've tried turning it off and back on but that still doesn't work. Does anyone know why?

You have an automatic task killer manager.
Find it and open it configure it for a longer period before autokill if you have a ram optimizer it also can close apps