Because gamepads operate on axes. They output a coordinate between -100 and 100 for both x and y axes, so you can get a 360 degree direction and magnitude.
If you mean the d-pad with four arrows rather than an analog stick, those are mapped as buttons, you just need to identify which ones.