Why do my guy friends still try to get with me even though they know i’m gay?

my friend has know that i’m gay for quite a few months, and he knows that i have a girlfriend as well. i had to stay over at his house for a few days while my parents were out of town, and he took this time to make multiple moves on me. it made me so uncomfortable, because i thought he was different. and i trusted him with a lot. it wouldn’t be much different even if i was straight and had a boyfriend, because he still wouldn’t be respecting that i had a relationship. however, the fact that i’m openly gay and he KNOWS this and that i have a girlfriend, why would he still try?
Why do my guy friends still try to get with me even though they know i’m gay?
Post Opinion