It's used so that injured players are instantly replaced if you are offline.
It's a bit confusing at first but the players you put into the slots are the ones that are subbed off, the game will randomly put another player on, it's not one slot for the player going off and the other for the player going on.
The best thing to do is make sure you are not left with an illegal formation if one of your players are injured.