Why did my website get hacked?

Typically, a website gets hacked it’s due to one of two things: a CMS exploit or a weak/compromised password, very often it could be prevented by applying updates to the website via the backend panels.