Countrywide Financial enabled Bank of America to extend its mortgage lending business and to tap into a large pool of new customers who might be interested in its credit card, consumer banking, and other financial products.