I don't know if this is a bug, but it seems like an exploit. Bastions are supposed to be challenging. Players using hoppers to take items from the chests take that away. With the piglin brutes coming sometime, this doesn't seem like it'll be an issue for too long, but it's still there. An easy fix would be to make piglins get mad at the player if they open a hopper. Or they could get mad at a player opening a hopper connected to a chest.
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-178973, which has been marked as Works as Intended - this is an intentional game feature. If you have a different opinion, please visit the Feedback website.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord