Medicare Part A covers a skilled nursing facility stay only if the individual was admitted for three days at the hospital as opposed to under observation, which is considered outpatient.
This article eloquently explains the difference between being admitted to a hospital versus under observation, what has changed during the pandemic, and what that means with regards to Medicare coverage of a skilled nursing stay.