After the theft and replacement, you still have the exact same items you had before (assuming as in the example that the replacement is strictly like-for-like), but you have $y$ less money. Thus your loss is $y$.
After the theft and replacement, you still have the exact same items you had before (assuming as in the example that the replacement is strictly like-for-like), but you have $y$ less money. Thus your loss is $y$.