Why would she give me her number if she has a boyfriend?

I had a girl do this to me. What would make her do this? We were (are?) pretty good friends, but I haven't been talking to her much lately since I asked her out and she told me she had a boyfriend right now.