When was the bear tied up with a chain? Why?

The bear was tied up with a chain only during the night and on Sundays when the lady went to her sister’s house. Apart from this, when he created trouble with the beehives he was tied up as a punishment for his mischief.