What could be causing my thigh pain?

Lots of things. Thigh pain can come from back, hip, and knee problems. Trauma to the area, acute or chronic can do it. Less common are things like infection and tumors. If it is persistent, worsening, associated with other issues, see your primary doctor or an orthopaedic surgeon.