Here's why:
* "Has" is used in the present tense.
* "Had" is used in the past tense.
* "Did" is a helping verb used to form questions and negative statements in the past tense.
Since the sentence is in the past tense, we need to use "did not have".