It was all by accident too, they said on that beyond stranger things show that he was originally supposed to be a stereotypical douche but the actor blew them away so they rewrote him towards the end of season 1 and his whole arc in season 2 became a thing