Forex positions are rolled over daily. Because you effectively hold one currency and owe another, the interest-rate difference between them is credited or charged each night as swap. Holding a high-rate currency against a low-rate one can earn swap; the reverse costs you.
Brokers add their margin to the swap, and Wednesday usually carries a triple charge to cover the weekend. On a one-day trade swap is a rounding error; on a three-week position it can quietly eat a meaningful share of your profit — or add to it.
Check the swap for your pair and direction in the platform before any trade you might hold. Long-term traders treat swap as part of the strategy's maths; day traders just need to know it exists before a 'quick trade' becomes an expensive overnight guest.