Two reasons Mueller knew when Manafort was lying:
1. In 2014 and/or 2015, the Obama Administration investigated his activities with Ukraine;
2. The Obama Administration was monitoring Manafort's phones without Manafort's knowledge.
Be that as it may, the charges relate to Manafort's activities with Ukraine, which were years before Trump ran for President.