I did not happen over night, it probably happened during the previous day, but did not come to light until it was switched on this morning.
Maybe the AV program only found it when it ran when the PC was switched on (I assume it was an AV program that found it).
Or it may be, for example, that the virus file was downloaded yesterday, but did not install itself till the computer was switched on this morning (a program can set itself to install as Windows is starting up).
If you have not done so already, disconnect that PC from the network and make sure it is completely clean before connecting it back to the network.
Also check carefully that it has not infected any other computers on the network.