Projectile Movement Bug?

This worked for me. but why does this work?