Some articles may not have a DOI. For example, articles published outside of the sciences tend not to have DOIs. An article may also not have a DOI if it was published before DOIs existed (though some older articles will have had DOIs added!).
DOIs are becoming more common in the scientific community, so recently published articles tend to have a DOI assigned to them.
Source. Reproduced with generous permission of author.