Some thing very interesting happened
Firstly, lets quickly understand what is capital gains tax?
When an individual sells their assets such as shares, jewellery, valuable etc and make gain on it. Such gain can be subjected to capital gains tax. When it come to the properties, your home is out of the scope of the capital gains tax but any other property such as second home, investment properties are with in the scope.
This means one can sell their home and make profit on it without any worry of paying tax. But if a profit is made on a second property which is not home then there may be capital gains tax liability.