A lime becomes hard because of dehydration which is often caused by improper storage (e.g. when the fruit is exposed to air).