You can lose out by seeming to care more about salary and benefits than about making a big contribution. You appear difficult. In multiple interviews companies have time to uncover weaknesses, character flaws, and problem behaviors, such as being arrogant or losing patience. You must appear co-operative, collaborative, and easy to work with. Someone on the team doesn't like you.
Many companies hire by consensus.
That means nearly everyone has to like you. You're not the best qualified. There may be others who really do fit the job better. Interviewing is a selling opportunity. It's a relatively short time frame and you're in the spotlight.