When the player kills the patrol leader in the creative mode, it will give Bad Omen effect.
Related issues
relates to
Attachments
Comments

[media][media]

I think this is WAI. Presumably, for players who don't know how to use commands, they could search for an illager patrol leader and kill it, so that they could mess around with bad omen raids.

I'm 99% sure it's "Works As Intended"