Most comets have specified orbits.It takes a particular time for them to complete the orbit.Mostly the orbits remain unchanged except in some cases when the comet gets hit with something that changes its orbit.Therefore they are seen after periodic time intervals.