About 4 years ago I submitted this answer to a question. It got upvoted recently so I took a look at it. I was really surprised to see that my answer was posted more than a year after the highest-voted answer, and that my answer is almost identical to that answer. It really adds nothing to the existing answer. (The fact that they are so similar can be explained by both of the answers being based off of code in the question.)
It made me wonder why on Earth I posted this answer at all. I don't just duplicate answers to try to gain rep. (My posting this question here should, I hope, make that clear.) I can't see why I didn't see and just upvote the answer already there.
My question is: Could there have been some explanation for this in the history of the questions and answer? For example, did I answer the question and then this older answer was moved from some other duplicate question? Or could there have been some reason that that answer would not have been visible at the time I wrote my answer?
I'm just genuinely mystified. I can accept that I was just being clueless and unobservant that day, but I'd like to think that there was some other explanation.