It's hard to be precise about what has caused the problem, some possible causes are:
-Virus or malware infection. You need to keep your Windows Defender or third-party antivirus updated and avoid installing apps from suspicious websites.
-A third-party app has corrupted or deleted some important Windows files. It's not recommended to use any third-party cleaner apps, some apps used to clean registry or temporary files also delete important files from Windows.
-A Windows Update didn't finish correctly. Usually, Windows Update problem is caused by a compatibility issue with a corrupted or outdated driver, it's recommended to check your computer/laptop manufacturer's website for driver updates and install them.
If you have any questions, please let me know and I'll be glad to assist you further.