why "det er en militæruniform" is wrong? doesn't it mean the same?
You are correct. "Militært jakkesæt" is technically correct as well, but no one would ever say that. "Militæruniform" is the word.
While "militært jakkesæt" is not wrong, at least not grammatically, "militæruniform" would be the correct term.