A bank can't loan out more than it is worth because the loans are assets. The more it lends the more it is worth. It was very much a liquidity problem.
They aren't assets if they are worthless and junk. That was the problem. The ratings agencies had given them tripple a ratings and they turned to junk. Because they could not be paid back.