This question already has an answer here:
Bitcoin noob here.
Where does the money I get from mining bitcoin come from?
Does bitcoin mining means I "steal" from other people?
If yes, should I fear this probability of being robbed while I make transactions?
I am thinkin of some type of "law conservation of money".
Does this law apply also to bitcoin?
Is bitcoin mining legal?
Could you please provide two references of how mining works, one for the street man and one for the programmer man?