Like attracts like! We as humans are strong masses of energy. Energy flows around us and through us constantly. As magnet attracts to metal, the energy we send out into the universe attracts experience and people to us. The law of attraction is about how our beliefs and actions work for or against us.
Everything about who we are is really programmed into our subconscious (unconscious) mind. There are so many things we do at an unconsciously competent level. These are the things that we are so good at, they can be done without much thought. The patterns have already been programmed into our minds.