get into the habit of losing
become a losing habit
losing has become a habit
「負け癖が付く」＝ get into the habit of losing/become a losing habit/losing has become a habit
The team has got into the habit of losing.
He is finding it difficult to break the losing habit.