I think it was some way of representing him reformulating his perspective for the trip, as instead of his anxieties about sleeping together with Kyouko, making sure she can finish the hike and see the big tree.What the hell was the punching himself bit about