All comets (there are over 3,500 known) have different time-scales for their appearances.
These depend on the length of their orbits - some comets have extremely large orbits which take them from being 'close' to the earth to almost going out of our solar system.
They appear because they come close enough to the Earth to be seen, and then they may take anything from a few years to hundreds of thousands of years beore they come back.
The best-known comet is Halley's Comet which has a period of between 75 and 76 years between appearances.