Refineries don't work like trade ports. They depend greatly on what planet they are on. You get Refinery income based on the number of extractors you own at that planet and every adjacent planet. So putting a refinery on an asteroid that is only connected to your homeworld would be stupid, but putting one on an Ice planet with 4 extractors and connected to planets with an additional 12 would make sense.
That said, as a rule its very rare you have a map set up that lets refineries be used well, and even then as each extractor can only have 3 refineries serving it, you effectively have a hard limit on how many you can have. You would be at little disadvantage if you didn't know how refineries worked and just always built trade ports for income.