Think of it this way: If people's incomes were taxed at 100% on Mondays and a zero percentage rate on Tuesdays, how many people do you think would showup for work on Monday?
For instance, refinancing your mortgage to a lower rate may improve your finances, but it also will cause credit inquiries to showup on your report, which could lower your score.