Because mutations are random. Evolution doesn't result in the ideal designs for everything, just the best (or good enough) of the random mutations that happen. OTOH, if we were designed by something, why would the designer not use the optimal leg designs for all the jumping bugs?