Advice please need advice

My baby hasn’t gained much weight. He’s behind gaining weight. His pediatrician said he wants to said my son to a specialist to make sure his hormones are okay. I’m very confused what hormones have to do with anything. Any ideas?