Chinese culture values modesty (谦虚). When complimented, saying 不敢当 shows humility. This is expected and appreciated, especially with elders or superiors.
usage
Similar humble responses include 哪里哪里 ('where, where' - meaning 'not at all') and 过奖了 ('you overpraise me').