Because he repented.
That's the same as saying by faith alone (as compared to the Law) because one cannot repent without faith.