Oil rises up the wick in a lamp because:
Due to the presence of pores (narrow space) in the wick, capillary action takes place, which makes the oil rise in the wick. Capillary action is the process of a liquid flowing in a narrow space without the assistance of, or even in opposition to, any external forces like gravity.