Asalamu Alaikum
This hadith is weak and misinterpreted. The concept of 'majhul' (lit. unknown) applies here. Majhul is a hadith where one or more narrators are unknown. I will try to elaborate a little more, Insha Allah.
Though Darussallam has graded this hadith (Sunan ibn Majah 1986) Hasan, the inclusion of Abd al-Rahmān Muslī in the chain of narrators makes this hadith weak, if not very weak according to many scholars. Hadith master al-Maqrizī in his Mukhtasar Kitab al-Witr (p.50) mentions that
Abd al-Rahmān Muslī, who not only is 'not known' as stated by al-Dhahabī in al-Mughnī fīl-Du‘afā’, but is not known to narrate anything else whatsoever in all of hadith literature!
Thus as per the criterion by ibn Hajar in Taqrīb al-Tahdhīb one from whom only one person narrated, without the declaration of his being trustworthy, is majhūl (of complete unknown reliability).
- [ I do not find it relevant to mention in detail here the mistake ibn Hajar made in grading Abd al-Rahmān Muslī 'magbul'. Please refer to Tahrīr Taqrīb al-Tahdhīb by al-Arna’ūt and Ma‘rūf for further clarification if you need any ]
Furthermore, this particular narration is recorded in ibn Majah, Abu Dawud and Ahmad all of them through Abd al-Rahmān Muslī.
As you can see below in the grading of Darussalllam, they have graded the hadith in Musnad Ahmad 'daif' because of the same 'majhul' narrator but not followed with the same pattern in the narration in ibn majah.
https://sunnah.com/ahmad/2/40
Now to the narration in Sunan Abu Dawud and sheikh Albani has graded it 'daif'.
https://sunnah.com/abudawud/12/102
Finally, the sense of the words 'a man is not to be asked why he beat his wife' does not mean that he is considered free to do so, because he is not, since the Prophet (S.A.W) explicitly prohibited wife-beating but rather that one should not be pressed to disclose anything blameful about one's wife.
In conclusion, we should not try to derive any ruling from weak narrations unless there is enough corroborating evidence to support it and that is not the case here.
May Allah the mighty and sublime grant you mercy and guide you to the straight path.
Allah knows best.