In the fetus, different lymphocytes are colliding with other cells. Some of these lymphocytes will have receptors that exactly fit those of the body’s own cells
These lymphocytes either die or are suppressed
The only remaining lymphocytes are those that may fit foreign material.
In an adult, lymphocytes produced in the bone marrow initially only encounter self-antigens - these cells undergo apoptosis. Only lymphocytes that might respond to non-self-antigens are left in the blood.