Who said you this? Companies prefer to recruit those candidates who have practical exposure irrespective of the fact that he passed in one attempt or more.
The practical experience you gained during articleship will benefit you nor your marks or number of attempts would be considered.
I know a boy who got AIR in Final exams but he was not recruited by the company because he didn’t took articleship seriously.
So companies recruit only those students who have done articleship.
Update: Recently a CA student got an annual package of 74 lakhs. He is not a ranker!
जय हिन्द