Why server computers often have connected hard drives?

Servers can have physical drives just like your computer or they can have network attached drives, which is really another server that has many drive that are provisioned to provide more space than a regular disks can.

A server, unlike your computer, must be able to store much more data. With modern servers, the server's hard drive is only used to load the operating system. The connected drives offer storage only.