Children are born with an immature immune system, which gradually strengthens over time. During infancy, they rely heavily on passive immunity transferred from their mothers, either through the placenta during pregnancy or through breastfeeding. As they grow, exposure to different pathogens helps build their immune response.