Confusion about programming Logic

So why bother configuring pin for input at all?