Based on the phone call to 911, the “friend” aka “David” was likely “a friend” of somebody else who was also at the Pelosi house, or “a friend” of somebody accompanying whomever was expected to be returning to the house.
Such “friend” therefore invited into the house, to wait.
Is a possibility.
Maybe it was a threesome and the other person left early.