The main thing you're doing when you advance or retard the cam is changing the intake valve closing point relative to crank position. When you advance the cam, you close the intake valve earlier, trapping more fuel/air mixture as the piston rises on the compression stroke and making more low end torque. Retarding the cam will soften the bottom end while adding more poop to the top end.