The general advice about writing dialogue tends to follow the same basic precepts. Conflict, goals, move the plot forward, don’t waste time with chit-chat, etc. That is certainly all useful stuff and will help keep the story moving.
But there’s more to dialogue than just getting across information.
People loves great dialogue. In books, in plays, in movies. In real life. Sparkling conversation holds the attention, even when it has nothing to do with anything. People like hearing it. It’s enjoyable to read. But it’s very difficult to write.