The stepper will get hot if it's working too hard too. Eg, on my extruder, I had the pinch wheel too tight against the filment, putting lots of pressure on the motor shaft, it also caused it to work harder than it should and heat up. Once I backed off the pinch wheel, it cooled down.