Just have a look at the timeline, first radar contact was lost, afterwards the maintenance messages were sent.
Radar contact was not "Lost". AF447 simply transitioned to an area of non-Radar coverage. They did not make the proper radio calls to report their position, but there are many possible reasons for this.