When you visit a place and find that by the end of the day, you have not finished what you came there for, you stay over. It could be at a hotel or a guest house or at someone's home. When you stay longer at a place than you were expected to, you are overstaying.