How do stop so many apps running in the background?

When ever I go and clean my RAM it removes around 20 applications, then I left it for maybe 20 seconds and pressed it again and it said "closed 15 applications"

How did 15 apps start so quick? I think its having a effect on my battery life.