Said in response to an obvious statement.
An exclamation of amazement.
An expression of gratitude or politeness in response to something done or given.