Why can bone marrow transplants be used to replace defective

Why can bone marrow transplants be used to replace defective lymphocytes?