Why can't powerful cars tow like trucks can?

I don't know if this a dumb question, but I don't understand why you can't, I know you aren't supposed to but why. If my 230 hp Ford Ranger can tow 6000lbs, why can't the 845 hp dodge demon tow something, it has way more hp, way more torque and 2 more cylinders. Does it have something to do with the suspension not being able to hold the weight or what?

Chassis rigidity.

The frame and suspension of a truck is a lot beefier and stronger than the frame of a car.

The frame, rear end, and suspension has a lot to deal with towing capacity.