Utility software helps manage and optimize computer systems by performing maintenance tasks like virus detection, installation, uninstallation, data backup, and deleting unwanted files. Operating systems like Windows and Linux manage hardware resources and provide common services that application programs access through APIs, acting as the bridge between users and computers. Together, utility software and operating systems support application software and ensure computers run efficiently.