Hack as a term predates the concept of cyber security. It was originally "a quick and dirty solution that is clever"
https://en.wiktionary.org/wiki/hack