It could be a quick escape for him or his friends, it could be needed to send some objects to others outside of Hogwarts, and it could be used to send something or someone into the castle. Vanishing cabinets could apparently bypass any sort of protection or secrecy charm like the Fidelius one.