Though Bruno's deployment to Austria only lasted a few weeks, he had taken many men with him, including Heinrich, who, as a major in the army, wasn't exactly invited to the meetings between the Generals and Monarchs.
Instead, he spent most of his time with the other soldiers, in the same tents, trenches, and conditions. Heinrich hadn't joined Bruno's latest escapade by choice; he was serving in the Field Army that Bruno commanded and happened to be in the division Bruno chose to enter Austria with.
Since this was the case, he needed someone to look after Alya, and that someone was naturally Heidi, who took the girl into her home with open arms. Heinrich wasn't exactly an ideal father figure.