The homeless man who allegedly shoved a woman into the path of a moving Manhattan train made a chilling confession — telling cops, “I did it because I wanted to,” a court heard Tuesday.