Short answer: usually both.
Longer answer: the physical side can contribute. The sensors that read an analogue stick or a steering wheel's movement may simply not register reliably at the extreme edges of travel, which creates a genuine hardware dead zone.
Most of the dead zone you actually notice, though, is software. It is applied either by the console's operating system or, more commonly, by the game itself, and it exists largely for preference reasons — a small dead zone stops a slightly-off-centre stick from drifting your character across the map.
That is also why dead zone settings turn up in game options rather than console menus: it is a tuning decision, not a fixed property of the pad.
100 Pics What Phrase Answers: Levels 1 to 100 Solved
Farm Frenzy 3: American Pie Walkthrough, Guide & Tips
Broken Hearts: A Soldier's Duty — Complete Walkthrough, Guide & Tips
Castlevania: Lords of Shadow – Resurrection DLC Guide: Conquering the Dimensional Prison
Art of Murder: Deadly Secrets — Complete Walkthrough, Guide & Tips