Minecraft wiki entry for Arrow, associated text: It is shot by a creative mode player.
It is shot by any mob able to shoot arrows, such as skeletons, strays, pillagers, or piglins. This includes mobs that do not shoot arrows in normal gameplay, such as illusioners and bow-wielding wither skeletons.
It is shot with an Infinity-enchanted bow.
It is one of the two extra arrows shot with a Multishot-enchanted crossbow.