The attachment of the legs to the tabletop is not secure, or the legs themselves lack the stiffness needed (and the larger a table is the more important both of these become). I suspect you have a combination of these two reasons here. Regardless, attaching this to the wall is by far the simplest solution for you here.