When "everybody is better", you can still increase your relative rank to other people if you benefit even more.
For example if I were to give $1 to every person on earth, but $100 million to you, everyone would be richer but you would be a lot richer still.