I know cardioid $r=1-\cos \theta$ can be parametrized to $$\gamma:[0,2\pi]\rightarrow \mathbb{R^2}, \space \gamma(\theta)=((1-\cos \theta)\cos \theta, (1-\cos \theta)\sin \theta)$$
But how is this done?
It seems like multiplying with the unit circle. But why is this "valid"?
The relationship between Cartesian coordinates and Polar coordinates is $$\begin{align} x&=r\cos(\theta)&r&=\sqrt{x^2+y^2}\\ y&=r\sin(\theta)&\theta&=\arctan\mathopen{}\left(\frac{y}{x}\right)\mathclose{}+\pi\left(\frac12-\frac{x}{2\left\lvert x\right\rvert}\right) \end{align}$$
Using the left equations, and the relationship for your curve, leaves you with $$\begin{align} x&=(1-\cos(\theta))\cos(\theta)\\ y&=(1-\cos(\theta))\sin(\theta) \end{align}$$
So you have the parametrization you describe.