It seems like they used the word gods in order to express indignation or amusement just they way we do nowadays. However, it is crucial to notice how they refer to gods in plural and not as only one god.
When Brutus talks about Portia he says, "O ye gods, Render me worthy of this noble wife!" (II.i.304). As you mentioned, Brutus is obviously not going to become render by asking the gods for it but, I would say that mentioning the gods was a way of making their statements