This is referred to as: spontaneous recovery
Spontaneous recovery is a theory of learning and memory which involves unexpected and recurrence of a conditioned response after a period of reduced response or delay. Spontaneous recovery is associated with classical conditioning and operant conditioning. Extinction will happen quickly after a spontaneous recovery, if the conditioned and unconditioned stimulus is not connected.