Ovulating but still put on clomid why ?

Hello everyone I ovulate and I actually know when I'm ovulating because it hurts .. But my doctor still put me on clomid why ?