Why do officers block half the road when they have a car stopped?

Officers are trained to offset their car in relation to the violator's in order to create a safety gap to walk up on the violator's car. Otherwise, they would be totally exposed to passing traffic and run a greater risk of being struck.