Composting is relevant in pediatrics for several reasons. It can be an educational tool to teach children about environmental sustainability and the importance of recycling organic waste. Additionally, composting can promote healthier lifestyles by encouraging outdoor activities and gardening, which can improve physical and mental health in children.