As the title suggests, I am a bit unsure why that is so? Log is not holomorphic so Cauchy seems a bit off.
If anyone could provide a hint that would be very appreciated.
Edit: I have tagged the question with "cauchy-integral formula" as I suspect it has something to do with it. If it is clearly wrong however, I will remove it if so.

The principal branch of logarithm, which I denote by $\log z$, is analytic in the disk $D(1,1)$. So $\log (1-az)$ is analytic in $D(0,\frac 1 {|a|})$ which includes the closed unit disk. Hence, Cauchy's integral formula is applicable and the value of the integral is $2\pi i$ times the value of $\log (1-az)$ at $0$ which is $0$.