When buying a home, your offer will have a few contingencies written in the purchase agreement.
Here is 1 example of a contingency:
The purchase of the home is contingent upon the home passing your inspections.
If the home doesn't pass your inspections within your inspection contingency period, you can back out of the deal and get your 3% deposit back.
However, once you have removed all of your contingencies, you can't back out of the deal just because you wake up one day and decide you no longer want to buy the home.
If you do that, the buyers could come after your 3% deposit as damages.
Always remember, changing your mind about the purchase of a property is not a contingency.