This is a brilliant way of keeping the game alive after an offence or foul.
Instead of blowing up for a penalty or scrum, the referee gives the side who have not committed the offence the advantage.
But this will only happen if it is in their favour.
For example, if a one player knocks the ball on but the opposition obtain the ball in a promising attacking position, the referee can play advantage.