No it’s not piracy, only if the media is being sold or distributed for profit. I work in the legal field of the music industry and using a 30 second clip of an audio for social media is NOT media piracy. And people have a purchased Apple Music account, which monetizes the songs that they are trying to play for recording anyway.
Apple probably did this to PREVENT people from selling/giving out a FULL song through text, email, messengers, etc.
So stop trying to tell other people what they can do and calling them pirates for social media if it doesn’t affect the copyright holder (i.e. the artist, publisher, etc.) Especially if you don’t know what you’re talking about.