How is it wise to save money when inflation is constantly lowering its value?

I was asked “how is it wise to save money when inflation is constantly lowering its value?”