Your friend may be pushing you away because they want you to go and maybe they don’t want to say it. However, you should not immediately assume that it is because of you, most times when someone is pushing their friend or partner away it has everything to do with their needs and desires, and very little to do with the person they are pushing away, and if your friend is pushing you away it may be much more because they are feeling incapable of maintaining a friendship right now and therefore they want you to not be around.