This also applies to coal ore.
They probably do this so creepers don't blow up and destroy your world. Creepers are meant to only blow up when they see a player, that's why zoglins and iron golems don't attack them.
This also applies to coal ore.