Retirement tax questions

Even answering yes to only used for medical expenses it still deducts from refund and I didn’t over fund my hsa