Why are homonyms used in sentences?

because they give people a chance to look at different meanings of words that sound and or spelled the same.