He claimed he was enlightened by following the four noble truths, of which meditation is one component. It might not be possible to achieve enlightenment through only meditation, but it's probably not possible to achieve enlightenment without meditation either.