The USB port adjacent to the diagram of the phone both connects to CarPlay AND charges my iPhone 11 Pro Max without issue.
The unmarked port is low-power, doesn't interface with CarPlay, and allows the phone to drain its battery.
If you're connected to the correct USB port and the phone isn't charging, you might want to try another cable.