This is an exception and a too-clever-for-its-own-good use of a traffic light. Usually we use a blue sign with a white arrow pointing right to show you can only turn right.
The only reason you can only ever turn right is because the light stays red, if it were to turn green you'd be allowed to cross the intersection in any direction.
There are also different rules that need to be followed when crossing the intersection on account of a green arrow than, if it were merely a turn right only situation.