The Hebrew for 'stripes' literally means 'bruise'.

Isaiah 53:10 tells us that it pleased God to bruise Jesus. He was only pleased because He knew the end result.

God knew: that Jesus would die on the Cross
                  that Jesus would save us from our
                          sins.
                  that Jesus take on Himself our
                          sickesses.
                  that Jesus would rise from the
                          dead.
                  that Jesus would have a glorified
                          body.
                  that all Jesus suffered for would turn
                          out good.