The word 小心 (xiǎoxīn) literally translates to “small heart.” This evokes the image of keeping one's heart/mind small and focused, hence “to be careful.” By adding the negative prefix 不 (bù), 不小心 (bù xiǎoxīn) becomes “not careful” or “not paying attention,” perfectly capturing the meaning of doing something accidentally.