In this form, they did not retain an actual corporeal body, but at the same time they were still aware of everything going on around them. And so, Hermione watched on as Dobby quickly took hold of Harry and Ron’s hands and apparate out of sight.