爵士 has two distinct meanings: a British-style knighthood title, and jazz music (爵士乐). Context makes the meaning clear.
history
The jazz music meaning is a phonetic borrowing — 爵士 (juéshì) approximates the sound of 'jazz'. The nobility meaning comes from the original Chinese meaning of 爵 (rank/title).