I always expected her to pull out of both tbh. Playing one hardcourt event then onto the clay makes no sense, nor does traveling all the way to South America for just one event. If she pulls out of Marrakech, then I'll be worried for the rest of the season.
This excursion to the west coast says to me she 1) had to stop hitting again and that; 2) didn't want to be at Bollettieri with the tennis tour circus and media in nearby Miami because she probably has no definite answer on when she'd be back.
In Düsseldorf there's a (controversial) doctor doing a procedure called Regenokine dealing with chronic pain and arthritis that many athletes have undergone in the past. No idea if that could be relevant to her injury.