A thrown object keeps moving because a temporary force, or "impetus," is impressed on the object.
Impetus is proportional to the speed of the object times its quantity of matter [mass].
The medium through which the projectile moves only provides resistance.
Impetus may slowly wear out or be overcome by gravity.
Gravity could begin to act while impetus declines.