Ever since the world was created, the invisible qualities of God have been visible in everything he has made. Those qualities are his eternal power and his nature as God. So people have no excuse for what they do.
The Gentiles don’t have the law, but sometimes they naturally do what the law requires. When that happens, they’re being a law for themselves, even though they don’t have the law.