Why it stopped when you didn't touch it
The printer's address moved. Most home networks hand out addresses that expire. After a power cut or a router restart, the printer comes back with a different one, and your computer is still looking at the old one.
A new router or a new internet company. Different network name, and the printer is still trying to join the old one.
An update changed the driver. Windows in particular will sometimes swap a working printer driver for a generic one during an update.
There are now four copies of the printer in the list, and the one set as default is a copy that doesn't work.