My six year old little girl had a clump of dry skin on her scalp. When I went to clean it, some of her hair came out with it. What could that be?

I washed her hair directly after and then rubbed some coconut oil on the area. It’s a bit red in the spot where I found the clump of dry skin at.