How does bluing prevent rusting?

Can you answer this question?