To attract and keep younger customers, community banks are swallowing the costs of offering products like free checking in exchange for the potential long-term gains that come with serving the generation’s mortgage, investing and eventually retirement needs, said Karin Bonding, a recently retired finance professor from the McIntire School of Commerce.