Bias error variance error

why bias error is one of the out of sample error?
I feel that bias error should be in sample error