When the SEO has an objective to get ranked at any cost, including violating best practices, and the kinds of things they do are deceptive, and they do things the search engines are known to be fighting, and they do it deliberately, that becomes black hat.