Japanese inflation is only a recent phenomenon. Prior to the pandemic, they were experiencing deflation and the BoJ was doing everything in its power to get some inflation. The falling birth rate, on the other hand, has been going on for far longer than monetary inflation.
Falling birth rates are often correlated with discretionary income levels and women's education.