Hello
YOu need to download and install the scanner driver from HP in order for Windows to recognize the printer as a scanner.
Go here: https://support.hp.com/ie-en/drivers/hp-deskjet-4200e-all-in-one-printer-series/model/2101374541
Expand the Driver-Universal Scan Driver section, download and install the driver from there.
If you ahve AMD/Intel CPU, use the 2nd one.
If you have ARM 64 architecture computer, such as a Snapdragon processor, use the first one.