Because it's a song about the 12 days leading up to Christmas. Each day, a different gift is given to the recipient, with the song listing each gift in a repetitive pattern. It's a classic holiday song that's been around for centuries and is still popular today.