Theo had a gate opener and knew all of the security codes to Malfoy Manor. He had spent alot of time here with Narcissa over the years, even more this last few months as her health declined and she refused to allow him to hire some simpering annoying nursemaid for her. She had threatened to cut out his heart and eat it in front of him before he died.