I just cant wrap my head around why the Sharpe ratio is unaffected by leverage and why information ratio is?

I understand the impact of change in weights on the two ratios, and that both numerator and denominator change by the same factor but I cannot understand the impact of leverage.

Can anyone please explain? Thanks!