Bitcoin has value because it is like gold in the internet. It is also mined and people buy an expensive equipment to mined them and it is limited in supply. Since it is limited, it becomes really precious and the price of it depends on the demand from the people.