It is perfectly possible that both words had a separate history but ended up with the same spelling.
There's very little information online on Swahili etymology, but you might appreciate (as a comparison) that the word "sound" in English has several different meanings (something audible; healthy; a body of water; to ascertain depth), and those differences come from separate word-histories.