Why was the trumpet valve made?

To make more notes possible to play and to create more ease for the player.