This is the universal Law of Resonance in action — which states what you will bring forth into your life is based on the resonance or frequency of the energy that you are projecting.
From a quantum theory perspective (if you care to know), the Law of Resonance determines the type and quality of energy frequencies that are emitted that the Law of Attraction utilizes to determine precisely what gets attracted into physical reality.
Regardless, the golden nugget here that we can apply to our lives:
You don’t get what you want from life but rather you get a reflection of who you are.
That’s where people get tripped up with ideas like the Law of Attraction and manifesting.
Thoughts don’t just become things.
Our desires don’t appear simply by focusing on them.