Why do guys ignore a girl after giving her weeks of active attention?

I have a friend whom I like and want to date. We have been good to each other for some time and he gave me enough attention and care. But suddenly he started avoiding me. Why is that so? I am really hurt.
Why do guys ignore a girl after giving her weeks of active attention?
Post Opinion