'hard-wired' means 'pre-programmed' by the way our psychology works. The analogy is with computers, which are 'hard-wired' to work in a certain way, but can be programmed [using software] to follow various routines and procedures. Note the contrast between 'hard' wired [fixed, cannot be modified] and 'soft'ware [flexible, allows a variety of applications].