Because you are speaking about past and having the dinner has occurred for Mary on the more past time.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Dorrah Saadwhy did use : had already hadTo show that the dinner was the first of two events in the past.