Jesus wanted to show Peter that even when we do not understand what we are doing, but do it just because God has said so, then we will be able to walk on the water and not sink. Believing God produces the miracle, not the understanding of how it works. Faith does not always understand things from heaven, but it trusts God, and it produces a miracle.