Why a projectile fixed along the horizontal not follow a straight line path?

Because the projectile fired horizontally is constantly acts upon by acceleration due to gravity acting vertically downwards.