That may explain why it happened, but it is still a bug. There was a raid that ended after 1 wave. There is no indication that there is still a raid going on, and no mobs to kill. Yes, I have looked. And there is no indication that I have a bad omen effect. Also, this is happening to multiple users, not just myself. And multiple villages (there are at least 3 in those screenshots, I have tried at least 5, all villagers doing the same thing). So something is funky.
That may explain why it happened, but it is still a bug. There was a raid that ended after 1 wave. There is no indication that there is still a raid going on, and no mobs to kill. Yes, I have looked. And there is no indication that I have a bad omen effect. Also, this is happening to multiple users, not just myself. And multiple villages (there are at least 3 in those screenshots, I have tried at least 5, all villagers doing the same thing). So something is funky.