setTimeout(), setInterval(), and requestAnimationFrame()

What is the significance of storing the interval ID?
let count = 0;
const intervalId = setInterval(() => {
  count++;
  if (count > 5) clearInterval(intervalId);
}, 1000);
Next Question (7/20)