It's likely that the owner was in the co-op doing some shopping. Dog's can sometimes look distressed after leaving them alone for just a minute.
You mention 40 minutes, though. Was it 40 minutes you seen the dog tied up for, or you seen the dog for a minute and then spent 40 mins on phone elsewhere?