It happens randomly and forces me to go pass a day at the tavern up to 14 times on occasion while suffering all the loading screens. It feels really dumb without any gameplay benefit. The visit to the store already represents a point at which the character makes an appointment or whatever to be there to do business and there is absolutely no need to complicate it further.