The behaviour of the RAM on Smartphones is the opposite of what we can found on a PC.
There is no need to absolutely free the RAM at all cost, it is counterproductive.
Same for killing apps in the "Recent Apps" screen continuously.
When you kill the app then restart it, it will consume CPU cycles, load RAM again and mathematically consume battery.
Most of the RAM usage is a sort of cache.
When an app or a game need to allocate memory the OS free the oldest stuff to make room.
I voluntary speak without technical jargon so non tech people can understand better.
Feel free to correct me or add something.