They don't rhyme — what they share is the suffix "-ist", which turns a noun or idea into a person: an artist practices art, a dentist works with teeth, a realist holds a particular outlook. So the pattern is grammatical rather than phonetic: "-ist" marks someone who does, believes in, or specialises in something.