Hamid cut the cocoon because he felt pity for the butterfly. He saw the butterfly struggling to get out and thought that it was not going to break free. Wanting to help, he decided to cut the cocoon to make the hole bigger, hoping to ease the butterfly's struggle. However, this act of kindness ended up hurting the butterfly, as it never developed the strength it needed to fly.