0% inflation is generally not a safe target. In an economy you want to avoid deflation at all costs. If consumers expect future price drops, demand can dip significantly and induce further drops in price (deflationary spiral). Businesses need consistent, predictable demand, else they enact shortsighted, over-reactive responses (e.g. layoffs) which can further exacerbate an economic downturn. See the Japanese financial crisis. Even a small fluctuation into deflationary territory can have long-lasting effects on consumer perception. It's safer (read: insurance policy) to maintain a slightly positive inflation rate so that consumers are encouraged to make purchase decisions promptly when needs arise versus indefinite speculative postponement.
Of course, the "optimal" inflation rate is context-dependent. Your unique economic situation will dictate which inflation trade-offs you end up selecting.