It is purely done to facilitate stowage in the wells and the retraction sequence. If you look at the A340-600 you’ll see that the main gears tilt a different way to the centre gear. This is to allow the mainwheels to clear the center bogey during the retraction.