The most successful modern states are those that have been able to harness the power of the market while maintaining a strong state that can provide public goods and regulate private activity.
Quality is free. It's not a gift, but it's free. What costs money are the unquality things -- all the actions that involve not doing jobs right the first time.