It is not fair use in itself: https://courses.cs.duke.edu/cps182s/fall02/cscopyright/Copyr...
Decompiling object code produces an approximation of the original source code. Merely making this rough copy would usually violate the copyright holder's exclusive rights, even if the person who decompiled the code only used it as a preliminary step in making another work.
The only reason anyone believes this is fair use is because the copyright holders have chosen not to enforce it.