In the beginning, there were no bitcoins. After that people beginning running a computer program (" mining"). This program addressed a mathematics trouble. When they fixed the trouble, they would certainly be compensated for their "mining" tasks with bitcoins from a main location. The math issue then ended up being harder to address and everyone got back to function.