To see a thing and be able to say it was so. A witness does not judge; a witness attests.
Old English witnes, from witan (to know), named one who can say a thing was so because they knew it directly, without judging it.
To see a thing and be able to say afterward that it was so, a witness attests to what happened and leaves the judging to someone else.