Xiaomi uses a modified maximum overdrive. Which means it allows more hidden apps in RAM then AOSP ROM's.
Can be fixed if you hack Services.jar
Edit:
To add some proof. I'm using a modified MIUI ROM that allows 50 hidden apps.
Only 1gb free.
Decrease the allowed amount of hidden apps results in less memory usage.