Tony was a sociopath and like sociopaths he was fond of animals that were obedient. Ralph was his top earner and let a lot of his antics slide, but killing Tonys pet was the breaking point. His death was redundant, but not seeing something happen to Ralphie in that episode would've been boring for the viewers.