Question: how did xehanort become a heartless?
Answer: So Xehanort is now known as Ansem The Seeker of Darkness. And Ansem, the Seeker of Darkness IS a HEARTLESS because he released his heart... ... since Terra was pretty much inside Xehanort(Terra + Xehanort)'s heart, and he ended up releasing it/became a heartless.