Any time there is an abrupt change in behavior or habits, particularly in an elderly dog, the first thing to do is take a trip to the vet & make sure there are no physical issues going on. It could be something (pain? confusion?) or it could be nothing but a new preference.