See
On-Semi TO-220 case 340AXYou have to watch the bend radius so you don't stess the die or the leads. It's also another manufacturing step risking ESD damage.
Ultimately the TO-220/D2PAK package is limited for high-voltage creepage/clearance for regulatory.
Slots are also commonly used between the pads on the pcb.