Why would a guy suddenly hate his female friend?

He is normal with his other female friends but with her he is different: sometimes it seems he likes her the other he just acts like he hates her. She did nothing bad to him and he said that she always was a good friend.
Why would a guy suddenly hate his female friend?
Post Opinion