Jibrīl accompanied the Prophet ﷺ during this journey. The Burāq is described as the mount provided for the night journey.
All of this occurred by Allah’s command. The miraculous means need not be confined to the ordinary mechanics of earthly transport.