Boa Hancock liked Luffy a lot, and she also cared for him a lot. This is the main reason she was interested in marrying him, and she married him. She wanted to live with him for her whole life. Along with this, she also has a strong friendship with Nami.