When using the word "but" in conversation or writing, there is an indication that whatever the person said before "but" is trivialized and thrown away as if it has no value. The only part that a person hears is after the "but". So the "yeah" part is considered meaningless in the statement.
It makes sense.