But you are saying that the US treasury doesn't take all the profits which was made mostly from the US treasury?

look, we can't teach you the complexities of economics on this thread alone. you will have to do alot of reading and studying on your own time if you want to understand what money is. it takes a LONG time and this thread is getting too long too.
i would start by reading the Creature From Jekyll Island by G. Edward Griffin and then move to Mises.org for an understanding of the gold standard.