The bank might require certain inspections if you're purchasing a home with financing, or if a buyer is purchasing your home with financing.
A bank will usually require an appraisal in this case. They'll hire a third-party appraiser to inspect the home, both inside and out, to determine if it's worth the amount of money they're loaning and to ensure that there aren't any glaring issues.
A bank might also require that one of its representatives conduct a walk-through property inspection. This is also done to determine if the bank wants to lend on it. It's more common when analyzing higher-end homes, multi-family residences, and retail or commercial spaces.