Right component supplies the sound (
两 liǎng → liàng, just a tone shift) and a strong semantic echo:
两 originally pictured a yoke holding two horses to pull a cart. That makes
辆 etymologically transparent: a yoked-pair drawing a vehicle = one full cart. The yoke origin of
两 explains why this measure word and
两 'two' share the same character.