Harry had decided to give Dobby's remains a muggle funeral as Bill and Fleur took in the other prisoners from Malfoy Manor. As he buried the brave house elf, he cried as he knew he couldn't get back into the Manor to rescue Hermione. His earlier row with Ronald didn't help either.