Because before His death and resurrection, Jesus did not act according to His own will, but in accordance with His Father's will (Phil. 2, among others). For example, His Father would tell Him to walk on the water, and give Him the authority over the water to do this. After the resurrection, Christ (re)gained all authority in heaven and on earth, and so could act miraculously at will.
“Thy will be done.”