Anything you do costs, usualy on a one to one basis
A factory, that costs 120 minerals to build, also costs 120 wealth
A research lab, that provides 300 research points per year, also costs you 300 wealth per year to operate
A ship that costs you 800 build points, it will cost you 800 wealth to build
and so on.