Is what I did cheating?

My bf has roommates. One day they were having sex(they are extremely loud), I got turned on, and masturbated to them... Since I don't like keeping things or hiding things from my bf I texted him right after what I did(he wasn't home). He got upset. I got upset at myself, and left his apartment and just stood hours in the 30 degrees cold outside. We then texted and he looked for me but still.

Up to this day, he still says that was cheating. Was it really? Was it bad I did? You can be honest but not rude, please....