They do the second one because in the wild, the members of the pack are vulnerable while pooping, so they have an instinct to watch over each other. Idk about the first, our dog always waits for us to to put the leash on. Maybe you could teach them the 'stay' command and then always say it when you want to put it on, then maybe he/she would eventually learn it.