If you say that you have taken the liberty of doing something, you are saying that you have done it without asking permission. People say this when they do not think that anyone will mind what they have done. [politeness]
I took the liberty of going into Assunta's wardrobe, as it was open; I was looking for a towel.