Its not a bug or something like that.
Metang and its pre- and evolution have an incredibly low catch rate, same as most legendaries to be exact. So either you use master balls or a ghost type with false swipe like Aegislash could help you catching one.