In a perfect world, no website would get hacked. Unfortunately many websites do come under attack and this can result in downtime, loss of data and serious loss of reputation for the owners. You can never 100% prevent against hacking but there are sensible steps that should be taken to minimise the risk.