Most Mac users don't use anything like Homebrew. Typically you just download the software as a .zip file or equivalent, unpack it, and run it.
Apple does support code signatures for apps downloaded this way through their Developer ID program, but you have to pay $99/year to be a member of their developer program in order to do so.
In theory, you could still sign downloads using a code signing certificate you got elsewhere, but system wouldn't check it for you, and few people would bother to do it manually.