It's an expression that explains behavior. It compares the human brain to a computer or machine. If you open up either of those, you will find electrical wires inside them, right?
These wires allow the machine or computer to operate correctly. With humans, our brains function with the aid of things like axons and neurons.
When a person uses this phrase, they are saying that the person's brain makes them naturally inclined to have certain thoughts or behave in a certain way. It's just how they are by nature. I hope this answer helps! Let me know if you would like some examples or if you understand now. :-)