Not a coincidence. They defined the meter from the second using the pendulum formula, and the pandulum formula has a pi in it, so pi is going to appear somewhere. The reason there is pi is probably because a pendulum is defined by its length and follows a circular motion that has the length as its radius.
We could imagine removing pi from the pendulum equation, but that would mean putting it back elsewhere, which would be inconvenient.