The user had a specific problem, and I gave them the answer they needed.
To be pedantic, the question reads:
Why is it doing this?
Your answer quite simply did not address this.
Only the OP knows why they did not accept your answer but it is their decisionit is their decision and it is generally recommended that they accept the answer they personally found most helpful.
If they genuinely wanted to understand the "why" and not just "how to fix it" one could assume this is why they did not accept your answer. The accepted answer provides far greater detail and perhaps this OP appreciated a detailed explanation.
As a side note, the fact that you answered first is pretty much irrelevant.
marked the correct answer
The user who asks a question gets to accept any answer they choose. It is not an indication of correctness.
Are new people not welcome to answer questions here?
New people are certainly welcome to answer questions here and we all started out as new people.