Dogs often tilt their heads when they are confused because it helps them better locate the source of a sound or a specific visual cue. By tilting their heads, dogs can adjust the shape of their ears to better capture and process the auditory information they are receiving, which can help them understand the situation better.