IUI recommended treatment

How did your RE decide this was best treatment? What methods did you try before this?