because Herod knew John was a holy man who did what was right. Herod protected John and though what John said was very disturbing to him, he was still happy to hear what he had to say.
While Peter was puzzling over what the vision he'd seen really meant, the men sent by Cornelius had found out where Simon's house was and were standing at the gate.