Point blank this should not be the case. If a child has pain it must be addressed and attended to. Chronic/Constant overuse pain is the case oftentimes though, because gymnasts are not taught to listen to our bodies, but to the coaches. Overuse injuries mean something is wrong with the training side that should be addressed, but oftentimes it is just swept under the rug.
An example would be I was having low back muscle strain pain that was not serious, and so my coach took a good look at how I was training, we experimented, and then determined I was doing to many reps of my series on beam. Problem fixed. My sister and a couple others on her team were having wrist pain so the whole gym started wrist strengthening conditioning to prevent that in other gymnast and help the ailing girls. In addition put them in tiger paws and watched reps. That was after a break until there was no pain in the daily. Problem solved.
I think you see my point. Pain is there for a reason, and it means something is wrong that must be fixed which is the gymnasts job to listen to their body and the coaches job to figure out the reasoning.
I am adamant about this as I have never been in constant pain and no one should have. The mentality of pain-is-okay-and-normal has gone on to long in gymnastics and needs to change. Education is key to that.