SHM increases the diversity of the antibody repertoire by introducing point mutations in the V region of Ig genes. This diversity is essential for the immune system to recognize and respond to a wide array of antigens. B cells that produce antibodies with higher affinity for the antigen are selected for further maturation, a process known as affinity maturation. This selection process ensures that the immune response becomes more effective over time.