Wondering why CarPlay requires your iPhone to be conected via a Lightning cable? Engadget gives a hint.

the CarPlay connection is based on the H.264 video protocol, and sends user input from the touchscreen back to your iDevice