Unlike software wallets, hardware wallets also give you more ownership over your keys because they're stored on a dedicated chip that you can hold on your person.
Apart from being resilient to potential software viruses and malware on the computer connected to the device, the wallet also provides security against hacking and stealing of the coins unlike in the online wallets.