Although you may of been messing around with the owner, you have still risked your freedom by stealing a vehicle and remaining near / inside the PD which ultimately lead to your arrest.
The officer also had a clear line of sight on you as you were reversing the vehicle at a very slow speed...