It can happen if you develop health issues like carpal tunnel or Sciatica due to extended sitting. Programming then gets mentally associated with pain.