Although Harry and Hermione were not required by the Ministry to attend such outside work functions, there were always plenty of rich Pure-blood donors and wealthy wizarding families trying to get in good graces with the various causes and departments of the Ministry. Throughout the years, Hermione had been gifted with nearly 100,000 Galleons for her various projects including rehoming house-elves and providing treatment for injured creatures after the War.  