My dog bit me

yaya

So my dog bit the hell out of me because I yelled at him for going through the trash so while I’m telling him to go to his room he goes and bites my arm ( I don’t know if you guys want to see) the bite is pretty bad but I don’t understand why my dog would that

Pics are shown

Update: I’ve been cleaning it