Facts
[A.], mother of five children and divorced, exercises parental authority and custody of her youngest child B., born in 1998, from a non-marital union. A maintenance agreement, approved on 5 July 1999 by the Justice of the Peace of the IVth circle of the Sarine (FR), provides that the father, C., pays maintenance and undertakes to claim his entitlement to family allowances and to pay them in addition to the maintenance, provided that no one else receives them.
On 3 January 2014, [A.], through the social assistance service, applied to the Compensation Fund of the canton of Fribourg (the fund) for family allowances for persons without gainful activity from 1 July 2013. Her application followed the father's refusal, as a registered unemployed person, to claim from his unemployment fund the supplement corresponding to the family allowances for B.
By decision of 7 February 2014, the fund rejected the application, on the ground that the father must, for as long as he is unemployed, himself claim the right to the allowances from his unemployment fund, the applicant being able, where appropriate, to request to exercise the father's right before that fund.
[A.] filed an objection, arguing that the father has not been unemployed since 9 January 2014 and that, for the relevant period (from 15 August 2013 to 9 January 2014), his right to the supplement lapsed for failure to have been exercised within the statutory period of three months. By decision of 29 April 2014, the fund partially upheld the objection by entering into the merits for the periods before (1 July to 15 August 2013) and after (from 10 January 2014) the father's receipt of benefits, and rejected it for the remainder.
Seised of an appeal, the First Court of Social Insurance of the canton of Fribourg upheld the appeal, annulled the decision and remitted the matter to the fund for a new decision (judgment of 12 October 2015). The fund lodged a public law appeal before the Federal Supreme Court, seeking annulment of the cantonal judgment and confirmation of its decision of 29 April 2014. [A.] requested dismissal of the appeal; the Federal Social Insurance Office (FSIO) waived submitting observations.
Issue in dispute: whether, where the unemployed parent does not claim his right to the supplement provided for under the UIA, the other parent without gainful activity may subsidiarily obtain the family allowances under the FAA.
Considerations
The cantonal judges considered that it was consistent with the purpose of the FAA and compatible with the system to grant the mother the allowances, regardless of the father's possibility of obtaining them under the UIA, since he had allowed his right to lapse, thereby excluding any risk of cumulation, and since the mother should not be disadvantaged without fault on her part.
The Federal Supreme Court does not share this analysis. Art. 22 para. 1 let. b UIA lays down a clear coordination rule: the child supplement is paid to the unemployed person only if no person exercising a gainful activity can claim allowances for the same child. If one parent is unemployed and the other exercises a gainful activity, the latter's right under the FAA takes precedence (Art. 7 para. 1 let. a FAA), whereas the right to the UIA supplement has priority if the other parent does not exercise a gainful activity. The legislator has thus determined which right prevails and which fund must pay the benefits when one of the parents is unemployed.
In the present case, the father's right under the UIA took precedence over the mother's right, without gainful activity, under the FAA during his period of unemployment. The fund was therefore entitled to deny its obligation to pay.
The Federal Supreme Court notes that family benefits are not granted automatically but on application (Art. 29 GSSLA), so that the father, not having claimed his right, received no payment, which leads to…