This is called the "post-hoc fallacy" Imeaning after the fact and therefore because of the fact). It suggests that because something happened after a particular event, it must have been caused by that event. This is faulty logic unless a cause-and-effect relationship has been demonstrated to exist.