Popping and clicking sounds are common. It's impossible to know exactly what causes it, but if we "ATM", we have some productive strategies to resolve it.
1) Tissue work / Self-massage
Try massaging the area that clicks and pops. Many people get clicking and popping in the high inner thigh in the front (near the hip flexors) or back (near the adductor and hamstring attachments). Explore different tools, positions, and angles so that you can pinpoint the areas that snap or pop.
Don't press so hard that you feel like you're DESTROYING what's in there. Remember to explore calmly and breathe calmly. You're trying to teach muscles to relax. If you can't breathe because it's so intense, you're doing it TOO HARD.
2) Stretching
Stretch the muscles that pop and snap. Make sure you experiment with different stretch angles and positions. Also try different stretches with your knee bent or straight, as that will help you aim the stretch in different parts of the muscles.
Also try to find stiff, inflexible muscles around the hips and legs. Stiffness in other muscles may cause popping and snapping in unexpected places.
3) Reactivation
Strengthen the muscles that pop and snap. Weak inner thigh, hamstring, and hip flexor muscles can cause popping and snapping around the hip. Weak glutes can also cause poor joint mechanics which will cause popping and snapping. The adductors seem to be common causes of snaps and pops, so training their strength is paramount.
Improving your hip internal and external rotation strength can make a big difference as well.
Do not neglect your abdominal strength. The abdominals help you stabilize your pelvis. If you cannot stabilize your pelvis, you may experience popping in different movements because your pelvis suddenly shifts and changes the way the femur and pelvis move relative to one another. This leads to tendons/muscles rubbing or catching on each other or potentially over natural bumps in your bones.