Said in response to an obvious statement.
An exclamation of amazement.
A riposte to someone who has just said something obvious