Obviously there are thousands of irrational reasons the filter could be there. If you are interested in some rational reasons, I can suggest the enlarger may have been used as a sensitometer.