How can a lender judge your capacity?

can a lender back out of a house loan if everthing on the borrower is right