In pediatrics, antigens play a vital role in the development of a child's immune system. Infants are born with some level of immunity inherited from their mother, but they need to develop their own immune responses as they grow. Exposure to antigens through infections or vaccinations helps in building this immunity.