The use of the article has nothing to do with what is? The article is usually used with countable nouns and not used with uncountable nouns, as in your two examples, but there are innumerable exceptions which have to be learned one by one. The use of articles is one of the most difficult aspects of English grammar and cannot be mastered in a day or two.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.