They are used as risk free assets because they are paid by the state. For example, the US treasure bills are backed up by the government and in order for you not to receive your money is the US to go bankrupt. Because the chances of something like that are quite slim, they are considered as risk free assets.