We use but to contrast something with what came before.