Dear student,
If any expense (repair) is incurred at time of purchasing an asset, it is done for keeping that asset put to use therefore that expense is added to cost of purchase.
While an expense done at later stage is not considered in cost of asset.
Regards