Prayer is communing and fellowshipping with the HolySpirit.
Jesus needed refreshing and so He spent time communing and fellowshipping with the HolySpirit.
Upon spending time with the HolySpiritFather, He was prepared to deal with the issues that He would face the next day.