from
The Phrase Finder
Meaning
To hold a candle for means to aid or assist. The expression 'he can't hold a candle to' expresses the opinion that someone (he) compares poorly with another person and isn't competent or worthy even to hold the light for him.
Origin
Apprentices used to be expected to hold the candle so that more experienced workmen were able to see what they were doing.