asgs753716dYou should find out how the other candidate was better than you and what you could have done better
Codex4041848015dWhat @asgs said, just ask the company why they chose the other profile over yours.
Companies who care about their people will give you a good answer. Companies that see their employees as cattle won't.
Either they reply and you can improve yourself or they don't and you know you want to stay away from that company.