That might be a side effect, but I'm doubtful it's the cause.
The main cause as I understand it is that the govt prints money to offset the gap between what it collects in taxes and what it spends.