actually they have the right to do so. the Schengen rules involves eliminating border controls with other Schengen members. Crossing a border without having a passport / identity-card is still illegal and you can get fined for. Schengen means there are usually no controls, but they can at any moment decide to stop you and ask for your ID.