Why is she afraid of me?

This one girl I work with has become very close friends with me. I am married for 6 years. My coworker knows this. Sometimes she is very flirty and she likes to invite me to do things with her and bring me gifts or food at my office. I really like her and she is very sweet. But i feel it is wrong. So I told her we should keep things professional and discontinue any personal contact.

My coworker became really upset and requested a transfer. I still see her at the office sometimes. I wave or smile but she will run away from me. I am sad i cannot have a friendship with her anymore and I miss her.

Did i do the right thing? I feel very bad.

Why is she afraid of me?
Post Opinion