Original: Thus, originally, the word was used to refer to somebody in charge of music in a chapel.
Simplified: Many famous composers had jobs as Kapellmeister.