Look at the character itself:
曲 is literally a bent shape — a rectangular frame with two vertical slats that bend inward, the silhouette of a curved bamboo basket. That visual 'bend' is the qū reading. The same graph, transferred to the rising-and-falling line of a melody, gives the qǔ reading. One picture, two readings, both rooted in 'curving line'.