1. Enough knowledge about the structure of the bias to be able to devise a model for it.
2. Some measurements from which to fit the model, with errors that are uncorrelated with the errors in your original data.
These things are not always easy to obtain, even in relatively mundane settings. It is also a distinctly non-automatic procedure - it requires someone to decide that a bias exists, to model it, obtain the relevant data, and fit the bias correction model, all before they can begin to obtain unbiased (or probably just less-biased) measurements.