Government-run electronic payment systems would face enormous technical scaling challenges, security vulnerabilities, and implementation costs that likely exceed private systems when accounting for taxpayer burden and bureaucratic inefficiencies.
It costs the Brazilian government around $10M yearly to maintain[1]. A bargain.
[1] https://www.infomoney.com.br/economia/custo-para-manter-pix-...