You use to be able to enchant pumpkins with a curse of binding, but you can no longer, at first I thought they just got rid of the feature, but then I realized that you can enchant the non carved pumpkin. So I believe it may be a mistake in enabling the pumpkin but not the carved pumpkin to be enchanted
Duplicate of MC-125810