It could just be a weird habit she formed growing up, much like kids eating glue, or people who eat toilet paper, chew pencils.
try this
Site seeking medical advice and help is what should be done, easy enough to bring your friend to the hospital, but make sure she knows, that way you aren't misplacing her trust, there would be very few reasons to inform the parents, but i doubt they could literally 'punish' her, strict doesn't mean Disciplinary. they're just concerned.
my brother ate pencils like a beaver throughout elementary, he stopped shortly before grade 8, sometimes a person grows out of it