Google is your friend here ;)
A WiiM device isn’t “some kind of knock off of an Amazon Alexa” (I guess you mean an Amazon Echo - Alexa is the cloud service/voice assistant. It’s like calling a HomePod an Apple Siri…).
WiiM devices are very capable hi res streamers but because of the lack of a suitable API for Apple Music, the best that can be done is to send Apple Music over AirPlay to a WiiM streamer from the Apple Music app.
However due to Apple Music’s penchant to only send lossy 256Kbps AAC over AirPlay 2 except in a very particular instance you can’t get bit perfect lossless playback for Apple Music unlike Amazon Music, Tidal, Deezer, Qobuz etc that all WiiM devices support losslessly.
[Edited by Moderator]