Default Htc One usb

My phone when charging goes to usb host mode or goes into car mode by itself don't know what to do