Stack exchange's purpose is to be a rich, navigable archive of useful information for future users of the internet to refer to.
Stack exchange does not care about your user experience except insofar as it directly helps accomplish the goal described above.
Also, you will notice that they have gotten much stricter about question-asking as time has gone on, so I would say back in 2013 when the second variant was originally asked, they weren't vetting carefully for duplicates. By the time the reviewers decided to mark it as a duplicate, the second question probably had received much more attention and was determined to be the more useful resource for future Googlers to arrive at.