If it's a patch that's new to you and you don't know when these were planted, then they are most likely to be onions planted for last summer, which weren't harvested and are now going to flower in their second year.
As Mum says, check by smell as to whether they are garlic or onions, but I suspect they're last year's onions.