A lot of people in the middle of the Bell Curve on this one
Early Modern Period (~1600 AD)
(thelemmy.club)
There is nothing wrong with shooting an arrow out of a gun. That's how modern tank guns do actually work. But for most purposes, the benefits of an arrow don't outweigh the ease of production of much simpler projectiles.