Why is the Sharpe ratio unaffected by the investor's position in riskfree assets?
Because the riskfree assets do not contribute to the excess return or the standard deviation of periodic returns, which are the components of the Sharpe ratio.