PWM driving of a DC/DC Converter with Arduino nano

I tried to access pin 9 and pin 10 directly with digitalWrite, which, obviously, did not work.

Why obviously ?