Swirling aerates the wine, allowing it to come into contact with oxygen, thus releasing odors.
It is true that wine can also be drunk and swallowed without paying much attention. Much of what you perceive as taste has been smell, influenced by is a vital point component in tasting wine. https://blogfreely.net/galleybomber9/the-attractiveness-of-red-wine-a-beginners-guide