If "Unpublish product from website" if stock is zero is checked in the admin, if you change the stock level to zero and save the product (via the admin), it remains published.
I've had some feedback that if this was checked and you set the stock to zero, you would still expect it to automatically unpublished the product, even though you changed the stock to zero manually in the admin.
I think this makes sense.