When a witch throws a potion of harming at a naturally spawned iron golem in a village and it hits a creeper then the creeper will come to it and explode
Comments 4
Generally, Mojang tries to have no damage done to the world that the player is not causing or able to stop themselves. So a Creeper should only ever explode as aggro to players. No other mobs.
I believe this behavior is intentional judging by the resolution of MC-74908.
This is not a mistake, but the mechanic of Creeper, he attacks any mob that inflicted damage on him, apparently the witch was standing close to the golem.