Why are there self-redirects here? edit

I'm working on the idea of a bot (script) to go through pages with self-redirects from uses of Template:sortname and insert nolink=1 into entries that are self-redirects.