It's really just the author's choice. Both sentences work with or without the indefinite article, and there is little difference in meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
goroI would like to hear more about 'the author's choice', please.The author (the person writing the sentence) can choose whether or not to use the article. This choice is a stylistic one and does not fundamentally affecting the meaning of the sentence.