When possible why isn't digitalWrite and read also pinMode replaced?

What about this?

int somePin = 13;
int someValue = HIGH;
digitalWrite(somePin, someValue);