When a mob enters a boat it can hit you from a greater range, this is most noticeable with the Ravager, I shot it while it was in a boat from 40+ blocks away and it was able to kill me, even when out of view. The ravager got in a boat during a raid in survival to specify
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue under MCPE-48539 so I've requested this report be resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki