The two places could be a long way apart , or the scrum could be 5m from the goal line, so a team could choose the scrum to gain territory
But this is a very old Law and pre dates the time from when you can kick a PK to touch , and keep the throw in.. and that would often be the normal choice now.
But yes I offer it, and sometimes it is taken