There is a functional difference between throwing projectiles at the world border when in the air versus when underwater: when in the air, the projectile will be stopped in the direction of travel, whereas when underwater, it will be deleted as though it touched a block.
This discrepancy seems unintentional, but I’m not sure which if the two behaviours is actually correct.
Thank you for helping us improve Minecraft! We saved your files: