Hi @Kurra,
if you are anything like me, things like this can feel like rejection and can make us feel very deflated. I'm not quite sure of the circumstances and the position you went for, but if it was something you really wanted then you are bound to feel disappointed.
If it was simply a case of your not meeting certain criteria, then don't take it too personally. It just means they had other applicants who did meet their criteria and of course they feel compelled to give those people a go. Sadly, that's how it goes.
I remember once I went for a job which I knew I was extremely well-suited for. But technically, I didn't have the exact relevant experience that they were looking for, so I did not even get an interview. I didn't get a chance to prove myself. The person they hired barely lasted 6 months in the position! I thought "Ah-ha! They should have hired me!" But of course they just have to meet certain criteria with their applicants, so this is the be-all and end-all that they go by.
Also, sometimes these things are rigged and someone who has a personal contact within the organization ends up getting the job. Favoritism - it's so common.
I agree with the comment above. Something better will come along for you!