PWM inductor current
If you use actual switch, before dropping down the current will create huge voltage, you will see an arc, and all energy stored in the inductor will be wasted. 

In a switching motor driver the switch is actually two switches- one to VCC, one to GND. So it does connect to zero.

Now, the sine you see on current is made not by filtering the PWM, but by current control loop.