Zombies, zombie villagers, husks, drowned can't see players, villagers, wandering traders or iron golems though walls, prior 1.14, they can.
Zombies, zombie villagers, husks, drowned can't see players, villagers, wandering traders or iron golems though walls, prior 1.14, they can.
This is not a bug.
this feature removed a long time ago because the wall hiding the mob behind it.
Also children mob also doesn't get attention from other hostile mobs.