Skeletons, Strays, Pillagers and Piglins in Bedrock editions updated an ability to change their attack pattern when under the water because of the resistance of the water, the arrow cannot hit to mobs. However this update missed in the Java editions.
Step to BE and JE
1. Summon a pillager or skeleton under the water.
2.Player change to Survival mode and swim. Or summon villager quickly nearby pillager.
3.Their behavior are different in JE and BE.
This report is not a valid parity issue report, as the parity issue predates the buzzy bees update.