You love those who give you love. Because the one who gives you love makes you feel special, feel wanted, feel cared for. You feel you are worth something. You are worth being loved. You get attached to those who give you that special love, special feeling. It is natural.
Hearts of people attach themselves to those who love them.
When you start giving love to everyone, you will find everyone getting attached to you. To give love, you need to care, you need to help, you need to be available. Then those hearts will get attached to you.