Ky directed me to write a bug report for this. The zombie pigman spawner when placed only spawns Piglin as in their overworld phase (when a piglin enters the overworld it transforms into a zombified piglin). And when placed in the nether or end it does not spawn an actual Piglin. I personally feel that if possible, there should be different methods of spawning either mob but that's another post for Suggestions.