According to dharmashastra, acquiring knowledge (vidya) without proper guru dakshina (offering to the teacher) was considered a sin. Ekalavya had learned archery by secretly watching Drona teach the Pandavas, so Drona demanded his thumb as guru dakshina to uphold this principle.