Does oral cancer only develop outside of the lip or also on the inside of the lip?

Both. Cancer can develop both out side and inside the lip. Early detection and excision is essential for cure.
Both sides. On the outside due to exposure to sun; and on the inside from tobacco and alcohol.