Possibly because he knew something like this would happen.
It was a great moment!
It was really a no lose if you think about it. If Cruz endorsed, DJT got the endorsement. If Cruz decided to immolate himself, get out the marshmallows.