I deleted my post because there was error in him (oh, bad English)
But, look at picture.
They said [itex]\int_0^6 \int_0^y x \mbox{d}x\mbox{d}y[/itex], that is yellow region (x from 0 (parallel y-axes) to x=y, y from 0 to 6). [itex]r[/itex] is moving from [itex]r=0[/itex] to y=6, so, [itex]y= 6= r \sin \theta \Rightarrow r = \dfrac{6}{\sin \theta} = 6 \csc \theta[/itex]