RF brake locked up. Why?

Disc or drum brakes?
Stock drum brakes. It's weird because everything is new. The brake pads locked on and stayed locked up until the car was turned off and everything cooled down.