Interesting question! We’ve written a blog piece on this subject of hackers, you can read it here: https://freshmango.co.uk/blog/why-hackers-hack/
Long story short – don’t take it personally if you get hit – it’s usually not you that they are targeting, even though it feels very personal.
You may also enjoy this blog piece.