The past continuous is used to describe actions which continued over a period of time in the past. This period can be expressed with a time expression or a clause with a verb in the past continuous tense. In this case the two actions were happening simultaneously: