Some hostile mobs are invisible. They can attack, but they do not make noise and cannot be hit. Disconnecting and reconnecting allows you to see them and attack them.
Sometimes, if a mob is invisible to one player, others can still see and attack the mob, but there have also been times where a mob is invisible to both me and another player or the entire server.
It affects all mobs, as I have seen an invisible baby sheep eat grass and upon relogging I was able to see the sheep and an invisible creeper exploding my friend.
This issue only appeared in the most recent update for bedrock 1.16.100 among many other issues.
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-71243, so this ticket is being 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:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki – 📖 FAQs
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit