Why does output and input both change?

[removed]