There were stairs that led to the basement of the building. Hermione had found them by chance on her first trip through this passage and thanked her lucky stars that she'd found a more efficient way in and out of Hogsmeade.