Very common misconception. Dollars have value because there is demand for them (governments, other governments, other people and institutions). Bitcoin also has value because there is demand for it. As does your house, expensive art, etc.
Why does anything have value? Because someone else will pay your for it. I can say my pencil is worth $1 billion, but it doesn't really unless someone else will execute the trade.