If the optimum angle is 90 degrees, the projectile goes straight up. Remember to duck when it comes back down.
In order to maximize the horizontal distance traveled, or range for all you ballistic fans, the projectile is launched at an angle to the horizontal. Without discussing drag or wind, the optimum angle of launch for maximum range is 45 degrees to the horizontal.
To see why an angle of launch of zero degrees is not desirable for maximum range, consider the following. If a projectile is launched at zero degrees to the horizontal, it will travel in the horizontal direction parallel to the ground, but it is also dropping toward Earth under the influence of gravity. Since there is no vertical component of velocity, the projectile will reach the ground in the same time it would take an object that was dropped from the same height at which the projectile was originally launched. In most instances, this height is very small, hence the time of flight of the projectile is a few seconds.
If, on the other hand, a projectile is launched at an angle to the horizontal, it travels upward at a certain velocity and gains altitude during flight. The influence of gravity is still acting to slow the upward travel of the projectile, and once the vertical component of velocity reaches zero, the projectile falls back to earth. One can see that the projectile launched at an angle spends more time aloft than one launched at a zero angle to the horizontal. Consequently, the angled projectile has a greater range.