We all know the term method acting right? It's when an actor gets so immersed in the role that they become the character both behind the cameras and in front of them.
That is why Joaquin Phoenix did, but it was not the only method for him. He took it physically too.