She has a boyfriend but gave me her number?

I met a woman at a store and was talking to her for a bit. I asked for her number, awkwardly I might add. She told me only if we could be just friends and that she has a boyfriend. I texted her and told her it was nice meeting her and she texted me back soon after. So why exchange numbers if you have a boyfriend though? I actually want to respect the relationship.
She has a boyfriend but gave me her number?
Post Opinion