Heartless already have a physical form, they’re darkness made real. If they were ghosts, they would just pass right through or possess people. And in Ansem SOD’s case, He possessed Riku’s body in KH1, and the Replica vessels gave him a physical form in KH3.