Some times the oil type stains, if not there prior to washing, can come from dryer sheets. I stopped using them when I wash my "dress" slacks , as the oily type stains made them unwearable as "dress" slacks.
AS for how to get them out... I have had some success with soaking over night in dawn dish liquid.