John's verbal attacks on Rachael are done to desperately hide his true feelings for her. He deeply fancies her and likes her; he just can't bear the thought of being rejected by a woman he likes.
So he he treats her like muck. It's a very common mental and emotional instability.