How do those websites unlock cell phones? And why cant we do it at home for free?

$5 isnt much, but im curious...